code: def get_default_session() -> Session:
      if len(Session.sessions.keys()) > 0:
          default_sess_key = list(Session.sessions.keys())[0]
          if len(Session.sessions[default_sess_key]) > 0:
              return Session.sessions[default_sess_key][0]
  
      # Create and return default session otherwise
      return DefaultSession()
  
imports: import os
  import atexit
  import signal
  import threading
  from typing import Optional
  from aim.ext.exception_resistant import exception_resistant
  from aim.sdk.legacy.deprecation_warning import deprecated
  from aim.ext.resource.configs import DEFAULT_SYSTEM_TRACKING_INT
  from aim.ext.resource.tracker import ResourceTracker
  from aim.sdk.repo import Repo
  from aim.sdk.run import Run
label_desc: Use image node_id 1 for calling a global function with example usage: get_default_session() and returns: DefaultSession, Session