def SetDefaultServicePeriod(self, service_period, validate=True):
    assert isinstance(service_period, self._gtfs_factory.ServicePeriod)
    self._default_service_period = service_period
    if self.service_periods not in service_period.service_id:
      self.AddServicePeriodObject(service_period, validate=validate)
dataset/ETHPy150Open google/transitfeed/transitfeed/schedule.py/Schedule.SetDefaultServicePeriod/swapped operands of `not in`