class_docstr: Tests functions for representative datasets.
class_docstr_tok: ["Tests","functions","for","representative","datasets","."]
docstr: Asserts that the sample values are "all close" between the two datasets.
  
  This assumes that the order of corresponding samples is preserved and the
  size of the two datasets are equal.
  
  Args:
    sess: Session instance used to evaluate any tf.Tensors.
    repr_ds_1: A RepresentativeDataset.
    repr_ds_2: A RepresentativeDataset.
docstr_tok: ["Asserts","that","the","sample","values","are","``","all","close","''","between","the","two","datasets",".","This","assumes","that","the","order","of","corresponding","samples","is","preserved","and","the","size","of","the","two","datasets","are","equal",".","Args",":","sess",":","Session","instance","used","to","evaluate","any","tf.Tensors",".","repr_ds_1",":","A","RepresentativeDataset",".","repr_ds_2",":","A","RepresentativeDataset","."]
code: def _assert_sample_values_all_close(
      self,
      sess: session.Session,
      repr_ds_1: repr_dataset.RepresentativeDataset,
      repr_ds_2: repr_dataset.RepresentativeDataset,
  ) -> None:
      """Asserts that the sample values are "all close" between the two datasets.
  
      This assumes that the order of corresponding samples is preserved and the
      size of the two datasets are equal.
  
      Args:
        sess: Session instance used to evaluate any tf.Tensors.
        repr_ds_1: A RepresentativeDataset.
        repr_ds_2: A RepresentativeDataset.
      """
      for sample_1, sample_2 in zip(repr_ds_1, repr_ds_2):
          self.assertCountEqual(sample_1.keys(), sample_2.keys())
  
          for input_key in sample_1:
              self._assert_tensorlike_all_close(
                  sess, sample_1[input_key], sample_2[input_key]
              )
  
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 2 for calling the RepresentativeDatasetTest obj's underlying member method code with example usage: obj._assert_sample_values_all_close(sess, repr_ds_1, repr_ds_2) without return types