code: def _domain_from_json(domain):
      """Translate a JSON domain dict into an IntDomain or None."""
      if domain.get("ints") is not None:
  
          def maybe_to_int(s):
              return int(s) if s is not None else None
  
          return schema_pb2.IntDomain(
              min=maybe_to_int(domain["ints"].get("min")),
              max=maybe_to_int(domain["ints"].get("max")),
              is_categorical=domain["ints"].get("isCategorical"),
          )
      return None
  
file_path: transform/tensorflow_transform/tf_metadata/metadata_io.py
imports: import json
  import os
  import tensorflow
  from tensorflow_transform.tf_metadata import dataset_metadata
  from tensorflow_transform.tf_metadata import schema_utils
  from google.protobuf import text_format
  from tensorflow.python.lib.io import file_io
  from tensorflow_metadata.proto.v0 import schema_pb2
label_desc: Use image node_id 4 for calling a global function with example usage: _domain_from_json(domain) and returns: None, schema_pb2, unknown