class_docstr: Tests functions for representative datasets.
class_docstr_tok: ["Tests","functions","for","representative","datasets","."]
code: def test_create_feed_dict_from_input_data(self):
      signature_def = meta_graph_pb2.SignatureDef(
          inputs={
              "input_tensor": meta_graph_pb2.TensorInfo(name="input:0")
          }
      )
      rng = np.random.default_rng(seed=14)
  
      input_tensor_value = rng.random(size=(2, 2))
      sample = {"input_tensor": input_tensor_value}
  
      feed_dict = repr_dataset.create_feed_dict_from_input_data(
          sample, signature_def
      )
  
      self.assertLen(feed_dict, 1)
      self.assertIn("input:0", feed_dict)
      self.assertAllEqual(feed_dict["input:0"], input_tensor_value)
  
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 12 for calling the RepresentativeDatasetTest obj's underlying member method code with example usage: obj.test_create_feed_dict_from_input_data() without return types