<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 async def login( cls, url, *, username=None, password=None, insecure=False):
 """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. """

        profile = await helpers.login(
            url=url, username=username, password=password, insecure=insecure)
        session = cls(profile.description, profile.credentials)
        session.insecure = insecure
        return profile, session