code: def _legacy_request(self, *args, **kwargs):
          
  
          if isinstance(self.token, dict):
              self.session = self._get_oauth_session()
              return super(OAuthClient, self)._legacy_request(*args, **kwargs)
  
          raise MissingToken("You must set_token() before creating a legacy request with OAuthClient")
docs: Makes sure token has been set, then calls parent to create a new :class:`pysnow.LegacyRequest` object
  
          :param args: args to pass along to _legacy_request()
          :param kwargs: kwargs to pass along to _legacy_request()
          :return:
              - :class:`pysnow.LegacyRequest` object
          :raises:
              - MissingToken: If token hasn't been set