def _state_session(state):
    if state.session_id:
        try:
            return _sessions[state.session_id]
        except KeyError:
            pass
    return None
Serialize this tree into the stream. Please note that we will assume
dataset/ETHPy150Open goFrendiAsgard/kokoropy/kokoropy/packages/sqlalchemy/orm/session.py/_state_session--crossover with--dataset/ETHPy150Open gitpython-developers/GitPython/git/objects/tree.py/Tree._serialize