code: def __get_entities(self, etype):
          
          r = fapi.get_entities(self.namespace, self.name,
                                etype, self.api_url)
          fapi._check_response_code(r, 200)
          return [Entity(e['entityType'], e['name'], e['attributes'])
                  for e in r.json()]
docs: Helper to get entities for a given type.