<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_data(self, entity_type, entity_id, history_index):
 """Return the data dict for an entity at a specific index of its history. """

        return self.entity_history(entity_type, entity_id)[history_index]