code: def iterate(self, scopes):
      scope_infos = [self._scope_to_info[s] for s in self._expand_tasks(scopes)]
      if scope_infos:
        for scope_info in self._expand_subsystems(scope_infos):
          yield scope_info