def get_session(config=None):
sess = tf.get_default_session()<EOL>if sess is None:<EOL><INDENT>sess = make_session(config=config, make_default=True)<EOL><DEDENT>return sess<EOL>
Get default session or create one with a given config