code: def _is_interactive(self):
          ''' Prevent middlewares and orders to work outside live mode '''
          return not (
              self.realworld and (dt.date.today() > self.datetime.date())f _is_interactive(self):
          ''' Prevent middlewares and orders to work outside live mode '''
          return not (
              self.realworld and (dt.date.today() > self.datetime.date()))
docs: Prevent middlewares and orders to work outside live mode