class_docstr: Build a tf.data.Dataset object out of Instruction instance(s).
  
  This class should not typically be exposed to the TFDS user.
class_docstr_tok: ["Build","a","tf.data.Dataset","object","out","of","Instruction","instance","(","s",")",".","This","class","should","not","typically","be","exposed","to","the","TFDS","user","."]
docstr: Initializes Reader.
  
  Args:
    path (str): path where tfrecords are stored.
    example_specs: spec to build ExampleParser.
    file_format: file_adapters.FileFormat, format of the record files in which
      the dataset will be read/written from.
docstr_tok: ["Initializes","Reader",".","Args",":","path","(","str",")",":","path","where","tfrecords","are","stored",".","example_specs",":","spec","to","build","ExampleParser",".","file_format",":","file_adapters.FileFormat",",","format","of","the","record","files","in","which","the","dataset","will","be","read\/written","from","."]
code: def __init__(
      self,
      path,  # TODO(b/216427814) remove this as it isn't used anymore
      example_specs,
      file_format=file_adapters.DEFAULT_FILE_FORMAT,
  ):
      """Initializes Reader.
  
      Args:
        path (str): path where tfrecords are stored.
        example_specs: spec to build ExampleParser.
        file_format: file_adapters.FileFormat, format of the record files in which
          the dataset will be read/written from.
      """
      self._path = path
      self._parser = example_parser.ExampleParser(example_specs)
      self._file_format = file_format
  
imports: from __future__ import annotations
  import functools
  import os
  import re
  from typing import Any, Callable, List, NamedTuple, Optional, Sequence
  from absl import logging
  import numpy
  from tensorflow_datasets.core import example_parser
  from tensorflow_datasets.core import file_adapters
  from tensorflow_datasets.core import splits
  from tensorflow_datasets.core import tf_compat
  from tensorflow_datasets.core import utils
  from tensorflow_datasets.core.utils import file_utils
  from tensorflow_datasets.core.utils import read_config
  from tensorflow_datasets.core.utils import shard_utils
  from tensorflow_datasets.core.utils import tree_utils
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
label_desc: Use image node_id 1 to create a new Reader object from inherited base classes: object with example: obj = Reader(path, example_specs, file_format)