code: def get_default_session():
      """Returns the default session for the current thread.
  
      The returned `Session` will be the innermost session on which a
      `Session` or `Session.as_default()` context has been entered.
  
      NOTE: The default session is a property of the current thread. If you
      create a new thread, and wish to use the default session in that
      thread, you must explicitly add a `with sess.as_default():` in that
      thread's function.
  
      Returns:
        The default `Session` being used in the current thread.
      """
      return _default_session_stack.get_default()
  
file_path: tensorflow/tensorflow/python/framework/stack.py
imports: from collections.abc import Iterator
  import threading
  from typing import Generic, Optional, TypeVar
  from tensorflow.python.util import tf_contextlib
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 2 for calling a global function with example usage: get_default_session() and returns: _default_session_stack