class_docstr: Reads a unischema based mock dataset.
class_docstr_tok: ["Reads","a","unischema","based","mock","dataset","."]
docstr: Initializes a reader object.
  
  :param schema: unischema instance
  :param schema_data_generator: A function that takes names of fields in unischema and returns the actual
          values that complies with the schema.
docstr_tok: ["Initializes","a","reader","object",".",":","param","schema",":","unischema","instance",":","param","schema_data_generator",":","A","function","that","takes","names","of","fields","in","unischema","and","returns","the","actual","values","that","complies","with","the","schema","."]
code: def __init__(self, schema, schema_data_generator, ngram=None):
      """Initializes a reader object.
  
      :param schema: unischema instance
      :param schema_data_generator: A function that takes names of fields in unischema and returns the actual
              values that complies with the schema.
      """
      self.schema = schema
      self.schema_data_generator = schema_data_generator
      if ngram is not None:
          raise ValueError(
              "Sequence argument not supported for ReaderMock"
          )
      self.ngram = ngram
      self.batched_output = False
  
file_path: petastorm/petastorm/test_util/reader_mock.py
imports: from decimal import Decimal
  import numpy
label_desc: Use image node_id 1 to create a new ReaderMock object from inherited base classes: object with example: obj = ReaderMock(schema, schema_data_generator, ngram)