def setup_session(session=None, mounts=None):

    if session is None:
        session = requests.session()
    if mounts is None:
        mounts = ('http://', 'https://')

    def _session():
        for mount in mounts:
            session.mount(mount, AsyncHTTPAdapter())

    if session is None:
        requests.session = requests.sessions.session = _session
    else:
        _session()
Mount the AsyncHTTPAdapter for a given session instance,
dataset/ETHPy150Open 1stvamp/trequests/trequests/__init__.py/setup_session