code: async def login(
          username: str, password: str, brand: str,
          websession: ClientSession = None) -> API:
      
      api = API(brand, websession)
      await api.authenticate(username, password)
      return api
docs: Log in to the API.