code: def _get_tensor_ranges_v2(metadata):
      """Lookup overrides for `Tensor`s  or `SparseTensor`s."""
      tensors = metadata[_TF_METADATA_TENSOR_COLLECTION]
      min_values = metadata[_TF_METADATA_TENSOR_MIN_COLLECTION]
      max_values = metadata[_TF_METADATA_TENSOR_MAX_COLLECTION]
      assert len(tensors) == len(min_values), "{} != {}".format(
          tensors, min_values
      )
      assert len(tensors) == len(max_values), "{} != {}".format(
          tensors, max_values
      )
      return {
          tensor.numpy().decode(): (
              min_value.numpy(),
              max_value.numpy(),
          )
          for (tensor, min_value, max_value) in zip(
              tensors, min_values, max_values
          )
      }
  
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 10 for calling a global function with example usage: _get_tensor_ranges_v2(metadata) and returns: unknown