def get_te_attr_id(self, name):
        """
        Returns the ID of the given tracked entity attribute
        """
        if name not in self._tracked_entity_attributes:
            # Note: self.get_resource_id returns None if name not found
            self._tracked_entity_attributes[name] = self.get_resource_id('trackedEntityAttributes', name)
        return self._tracked_entity_attributes[name]
dataset/ETHPy150Open dimagi/commcare-hq/custom/dhis2/models.py/Dhis2Api.get_te_attr_id/original