code: def current_io_scopes():
      ret = getattr(_thread_local_scopes, "io_scopes", None)
      if ret is None:
          ret = []
          _thread_local_scopes.io_scopes = ret
      return ret
  
file_path: lucid/lucid/misc/io/scoping.py
imports: import os
  from copy import copy
  import threading
  import sys
  from contextlib import contextmanager
label_desc: Use image node_id 1 for calling a global function with example usage: current_io_scopes() and returns: ret