<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def entity_categories(self, entity_id):
 """ Get a list of entity categories for an entity id. :param entity_id: Entity id :return: Entity categories :type entity_id: string :rtype: [string] """

        attributes = self.entity_attributes(entity_id)
        return attributes.get(ENTITY_CATEGORY, [])