class_docstr: Representative dataset loader.
  
  Exposes the `load` method that loads the representative dataset from files.
class_docstr_tok: ["Representative","dataset","loader",".","Exposes","the","`","load","`","method","that","loads","the","representative","dataset","from","files","."]
docstr: Loads the representative datasets.
  
  Returns:
    representative dataset mapping: A signature def key -> representative
    mapping. The loader loads `RepresentativeDataset` for each path in
    `self.dataset_file_map` and associates the loaded dataset to the
    corresponding signature def key.
docstr_tok: ["Loads","the","representative","datasets",".","Returns",":","representative","dataset","mapping",":","A","signature","def","key","-",">","representative","mapping",".","The","loader","loads","`","RepresentativeDataset","`","for","each","path","in","`","self.dataset_file_map","`","and","associates","the","loaded","dataset","to","the","corresponding","signature","def","key","."]
code: def load(self) -> RepresentativeDatasetMapping:
      """Loads the representative datasets.
  
      Returns:
        representative dataset mapping: A signature def key -> representative
        mapping. The loader loads `RepresentativeDataset` for each path in
        `self.dataset_file_map` and associates the loaded dataset to the
        corresponding signature def key.
      """
      repr_dataset_map = {}
      for (
          signature_def_key,
          dataset_file,
      ) in self.dataset_file_map.items():
          if dataset_file.HasField("tfrecord_file_path"):
              repr_dataset_map[
                  signature_def_key
              ] = self._load_tf_record(dataset_file.tfrecord_file_path)
          else:
              raise ValueError(
                  "Unsupported Representative Dataset filetype"
              )
  
      return repr_dataset_map
  
imports: import collections.abc
  import os
  from typing import Iterable, Mapping, Optional, Union
  import numpy
  from tensorflow.compiler.mlir.quantization.tensorflow import quantization_options_pb2
  from tensorflow.core.protobuf import meta_graph_pb2
  from tensorflow.python.client import session
  from tensorflow.python.data.ops import readers
  from tensorflow.python.eager import context
  from tensorflow.python.framework import tensor_util
  from tensorflow.python.lib.io import python_io
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.types import core
  from tensorflow.python.util import tf_export
label_desc: Use image node_id 3 for calling the RepresentativeDatasetLoader obj's underlying member method code with example usage: obj.load() and returns: repr_dataset_map