<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _pop_entities(self, limit=50):
 """ returns up to limit entities and pops them off the list """

        pop = self.data['entities'][:limit]
        del self.data['entities'][:limit]
        return pop