def _make_session(connection: Optional[str] = None) -> Session:
if connection is None:<EOL><INDENT>connection = get_global_connection()<EOL><DEDENT>engine = create_engine(connection)<EOL>create_all(engine)<EOL>session_cls = sessionmaker(bind=engine)<EOL>session = session_cls()<EOL>return session<EOL>
Make a session.