docs: def connect(self):
          """
          Parameters
          ----------
          prev_login : xnat.XNATSession
              An XNAT login that has been opened in the code that calls
              the method that calls login. It is wrapped in a
              NoExitWrapper so the returned connection can be used
              in a "with" statement in the method.
          """
          sess_kwargs = {}
          if self._user is not None:
              sess_kwargs['user'] = self._user
          if self._password is not None:
              sess_kwargs['password'] = self._password
          self._login = xnat.connect(server=self._server, **sess_kwargs)