code: def tracing_scope():
      """Enables tracing scope."""
      # This enables the LayerCallCollection's tracing mechanism to trace all call
      # functions in the collection.
      previous_value = _thread_local_data.enable_call_tracing
      previous_queue = _thread_local_data.trace_queue
      try:
          _thread_local_data.enable_call_tracing = True
          _thread_local_data.trace_queue = []
          yield
      finally:
          # Run traces from the queue.
          while _thread_local_data.trace_queue:
              (
                  fn,
                  args,
                  kwargs,
                  training,
              ) = _thread_local_data.trace_queue.pop()
              if training is not None:
                  with K.deprecated_internal_learning_phase_scope(
                      training
                  ):
                      fn.get_concrete_function(*args, **kwargs)
              else:
                  fn.get_concrete_function(*args, **kwargs)
          _thread_local_data.trace_queue = previous_queue
          _thread_local_data.enable_call_tracing = previous_value
  
imports: import functools
  import threading
  import weakref
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.framework import tensor_spec
  from tensorflow.python.keras import backend
  from tensorflow.python.keras.engine import base_layer_utils
  from tensorflow.python.keras.engine import input_spec
  from tensorflow.python.keras.mixed_precision import autocast_variable
  from tensorflow.python.keras.saving import saving_utils
  from tensorflow.python.keras.saving.saved_model import constants
  from tensorflow.python.keras.saving.saved_model import load
  from tensorflow.python.keras.saving.saved_model import serialized_attributes
  from tensorflow.python.keras.saving.saved_model import utils
  from tensorflow.python.keras.utils import tf_contextlib
  from tensorflow.python.keras.utils import tf_inspect
  from tensorflow.python.keras.utils import tf_utils
  from tensorflow.python.keras.utils import version_utils
  from tensorflow.python.keras.utils.generic_utils import LazyLoader
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.trackable import data_structures
  from tensorflow.python.util import nest
  from tensorflow.python.util import tf_decorator
label_desc: Use image node_id 9 for calling a global function with example usage: tracing_scope() without return types