class_docstr: Tests functions for representative datasets.
class_docstr_tok: ["Tests","functions","for","representative","datasets","."]
docstr: Asserts that two different TensorLike values are "all close".
  
  Args:
    sess: Session instance used to evaluate any tf.Tensors.
    tensorlike_value_1: A TensorLike value.
    tensorlike_value_2: A TensorLike value.
docstr_tok: ["Asserts","that","two","different","TensorLike","values","are","``","all","close","''",".","Args",":","sess",":","Session","instance","used","to","evaluate","any","tf.Tensors",".","tensorlike_value_1",":","A","TensorLike","value",".","tensorlike_value_2",":","A","TensorLike","value","."]
code: def _assert_tensorlike_all_close(
      self,
      sess: session.Session,
      tensorlike_value_1: core.TensorLike,
      tensorlike_value_2: core.TensorLike,
  ) -> None:
      """Asserts that two different TensorLike values are "all close".
  
      Args:
        sess: Session instance used to evaluate any tf.Tensors.
        tensorlike_value_1: A TensorLike value.
        tensorlike_value_2: A TensorLike value.
      """
      if isinstance(tensorlike_value_1, core.Tensor):
          tensorlike_value_1 = tensorlike_value_1.eval(session=sess)
  
      if isinstance(tensorlike_value_2, core.Tensor):
          tensorlike_value_2 = tensorlike_value_2.eval(session=sess)
  
      self.assertAllClose(tensorlike_value_1, tensorlike_value_2)
  
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 the RepresentativeDatasetTest obj's underlying member method code with example usage: obj._assert_tensorlike_all_close(sess, tensorlike_value_1, tensorlike_value_2) without return types