def __get_entities(self, etype):
r = fapi.get_entities(self.namespace, self.name,<EOL>etype, self.api_url)<EOL>fapi._check_response_code(r, <NUM_LIT:200>)<EOL>return [Entity(e['<STR_LIT>'], e['<STR_LIT:name>'], e['<STR_LIT>'])<EOL>for e in r.json()]<EOL>
Helper to get entities for a given type.