code: def _contains_tensor(
      sample: repr_dataset.RepresentativeSample,
  ) -> bool:
      """Determines whether `sample` contains any tf.Tensors.
  
      Args:
        sample: A `RepresentativeSample`.
  
      Returns:
        True iff `sample` contains at least tf.Tensors.
      """
      return any(
          map(
              lambda value: isinstance(value, core.Tensor),
              sample.values(),
          )
      )
  
imports: import random
  import numpy
  from tensorflow.compiler.mlir.quantization.tensorflow.python import representative_dataset
  from tensorflow.core.protobuf import meta_graph_pb2
  from tensorflow.python.client import session
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.platform import test
  from tensorflow.python.types import core
label_desc: Use image node_id 1 for calling a global function with example usage: _contains_tensor(sample) and returns: any