def ValidateRouteAgencyId(self, problems):
    # Check that routes' agency IDs are valid, if set
    for route in self.routes.values():
      if (not util.IsEmpty(route.agency_id) and
          not self._agencies in route.agency_id):
        problems.InvalidAgencyID('agency_id', route.agency_id,
                                 'route', route.route_id)
dataset/ETHPy150Open google/transitfeed/transitfeed/schedule.py/Schedule.ValidateRouteAgencyId/swapped operands of `in`