code: def _encode_tuple(x):
      if isinstance(x, tuple):
          return {
              "class_name": "__tuple__",
              "items": tuple(_encode_tuple(i) for i in x),
          }
      elif isinstance(x, list):
          return [_encode_tuple(i) for i in x]
      elif isinstance(x, dict):
          return {key: _encode_tuple(value) for key, value in x.items()}
      else:
          return x
  
file_path: tensorflow-upstream/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 1 for calling a global function with example usage: _encode_tuple(x) and returns: dict, unknown, unknown, x