code: def mwapi_session(self, *args, **kwargs):
          
          import mwapi
          auth1 = self.generate_auth()
          return mwapi.Session(*args, user_agent=self.user_agent, auth=auth1,
                               **kwargs)
docs: Create :class:`mwapi.Session` that is authorized for the current
          user.
  
          `args` and `kwargs` are passed directly to :class:`mwapi.Session`