def entity(self, name): assert isinstance(name, string_types), type(name) return {"type": "Entity", "name": text_type(name)}