code: def _get_object(name: str) -> Optional[base.Trackable]:
      """If an object is being tracked using `name` return it, else None."""
      module = TFGraphContext.get_module_to_export()
      # The `preprocessing_fn` should always be invoked within a TFGraphContext. If
      # not, module will be None.
      if module is None:
          raise RuntimeError(
              f"No module found to track {name} with. Check that the `preprocessing_fn` is"
              " invoked within a `TFGraphContext` with a valid "
              "`TFGraphContext.module_to_export`."
          )
      return getattr(module, name, None)
  
file_path: transform/tensorflow_transform/annotators.py
imports: import contextlib
  import os
  from typing import Callable, List, Optional
  import tensorflow
  from tensorflow_transform.graph_context import TFGraphContext
  from tensorflow_transform.keras_lib import tf_keras
  from tensorflow.python.trackable import base
label_desc: Use image node_id 2 for calling a global function with example usage: _get_object(name) and returns: getattr