<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_type_from_api_entity(self, api_entity):
 """ Returns the object type as a string given a api entity. Args: api_entity: Returns: """

        merged = self.group_types_data.copy()
        merged.update(self.indicator_types_data)
        print(merged)
        for (key, value) in merged.items():
            if value.get('apiEntity') == api_entity:
                return key
        return None