<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def partitioned_repertoire(self, direction, partition):
 """Compute the repertoire over the partition in the given direction."""

        system = self.system[direction]
        return system.partitioned_repertoire(direction, partition)