<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_all_targets(self):
 """Returns all targets for all batches of this Executor."""

        result = []
        for batch in self.batches:
            result.extend(batch.targets)
        return result