code: def set_tensor_schema_override(tensor, min_value, max_value):
      """Override parts of the schema of a `Tensor`.
  
      Args:
        tensor: The `Tensor` whose range is being set.  Must have dtype int64.
        min_value: A `Tensor` representing the min value of `tensor`.
        max_value: A `Tensor` representing the max value of `tensor`.
  
      Raises:
        ValueError: If any arguments are invalid.
      """
      if not isinstance(tensor, tf.Tensor):
          raise ValueError("tensor {} was not a Tensor".format(tensor))
      if tensor.dtype != tf.int64:
          raise ValueError(
              "Range can only be set for feature of type tf.int64, got {}".format(
                  tensor.dtype
              )
          )
      if not isinstance(min_value, tf.Tensor):
          raise ValueError(
              "min_value {} was not a Tensor".format(min_value)
          )
      if not isinstance(max_value, tf.Tensor):
          raise ValueError(
              "max_value {} was not a Tensor".format(max_value)
          )
      tf.compat.v1.add_to_collection(
          _TF_METADATA_TENSOR_COLLECTION, tensor
      )
      tf.compat.v1.add_to_collection(
          _TF_METADATA_TENSOR_MIN_COLLECTION, min_value
      )
      tf.compat.v1.add_to_collection(
          _TF_METADATA_TENSOR_MAX_COLLECTION, max_value
      )
  
imports: import collections
  import itertools
  from typing import Any, Callable, Dict, Iterable, List, Mapping, Optional, Tuple, Union
  from absl import logging
  import tensorflow
  from tensorflow_transform import common
  from tensorflow_transform import common_types
  from tensorflow_transform import graph_context
  from tensorflow_transform import tf2_utils
  from tensorflow_transform import tf_utils
  from tensorflow_transform.saved import saved_transform_io_v2
  from tensorflow_transform.tf_metadata import schema_utils
  from tfx_bsl.tfxio import tensor_representation_util
  from google.protobuf import any_pb2
  from tensorflow.python.eager import function
  from tensorflow.python.framework import ops
  from tensorflow_metadata.proto.v0 import schema_pb2
label_desc: Use image node_id 8 for calling a global function with example usage: set_tensor_schema_override(tensor, min_value, max_value) without return types