Create :class:`mwapi.Session` that is authorized for the current
        user.

        `args` and `kwargs` are passed directly to :class:`mwapi.Session`

def mwapi_session(self, *args, **kwargs):
        """
        Create :class:`mwapi.Session` that is authorized for the current
        user.

        `args` and `kwargs` are passed directly to :class:`mwapi.Session`
        """
        import mwapi
        auth1 = self.generate_auth()
        return mwapi.Session(*args, user_agent=self.user_agent, auth=auth1,
                             **kwargs)