code: def _decode_helper(obj):
      """A decoding helper that is TF-object aware."""
      if isinstance(obj, dict) and "class_name" in obj:
          if obj["class_name"] == "TensorShape":
              return tensor_shape.TensorShape(obj["items"])
          elif obj["class_name"] == "TypeSpec":
              return type_spec_registry.lookup(
                  obj["type_spec"]
              )._deserialize(  # pylint: disable=protected-access
                  _decode_helper(obj["serialized"])
              )
          elif obj["class_name"] == "__tuple__":
              return tuple(_decode_helper(i) for i in obj["items"])
          elif obj["class_name"] == "__ellipsis__":
              return Ellipsis
      return obj
  
file_path: tensorflow/tensorflow/python/keras/saving/saved_model/json_utils.py
imports: import collections
  import enum
  import json
  import numpy
  import wrapt
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.framework import type_spec_registry
  from tensorflow.python.types import internal
label_desc: Use image node_id 3 for calling a global function with example usage: _decode_helper(obj) and returns: obj, tensor_shape, type_spec_registry, tuple, Ellipsis