@contextmanager
def get_session(auth: Optional[Union[(HTTPDigestAuth, RawAuth)]]=None, headers: Optional[Dict[(str, Any)]]=None) -> Generator[(requests.Session, None, None)]:
    with requests.Session() as session:
        if (auth is not None):
            session.auth = auth
        session.headers['User-agent'] = USER_AGENT
        if (headers is not None):
            session.headers.update(**headers)
        (yield session)
@contextmanager
def get_session(auth: Optional[Union[(HTTPDigestAuth, RawAuth)]]=None, headers: Optional[Dict[(str, Any)]]=None) -> Generator[(requests.Session, None, None)]:
    with requests.Session() as session:
        if (auth is not None):
            session.auth = auth
        session.headers['User-agent'] = USER_AGENT
        if (headers is not None):
            session.headers.update(**headers)
        (yield session)