code: async def login(
              cls, url, *, username=None, password=None, insecure=False):
          
          profile = await helpers.login(
              url=url, username=username, password=password, insecure=insecure)
          session = cls(profile.description, profile.credentials)
          session.insecure = insecure
          return profile, session
docs: Make a `SessionAPI` by logging-in with a username and password.
  
          :return: A tuple of ``profile`` and ``session``, where the former is
              an unsaved `Profile` instance, and the latter is a `SessionAPI`
              instance made using the profile.