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