docstr: Just a bunch of read and compares of all values to the expected values for their types and
  shapes.
docstr_tok: ["Just","a","bunch","of","read","and","compares","of","all","values","to","the","expected","values","for","their","types","and","shapes","."]
code: def test_simple_read(self):
      """Just a bunch of read and compares of all values to the expected values for their types and
      shapes."""
      # Read a bunch of entries from the dataset and compare the data to reference
      for _ in range(10):
          actual = dict(next(self.reader)._asdict())
          for schema_field in TestSchema.fields.values():
              if schema_field.numpy_dtype == Decimal:
                  self.assertTrue(
                      isinstance(actual[schema_field.name], Decimal)
                  )
              else:
                  self.assertTrue(
                      actual[schema_field.name].dtype.type
                      is schema_field.numpy_dtype
                  )
                  self.assertEqual(
                      len(actual[schema_field.name].shape),
                      len(schema_field.shape),
                  )
  
      self.reader.stop()
      self.reader.join()
  
file_path: petastorm/petastorm/tests/test_reader_mock.py
imports: import unittest
  from decimal import Decimal
  import pytest
  import tensorflow.compat.v1
  from petastorm.test_util.reader_mock import ReaderMock, schema_data_generator_example
  from petastorm.tests.test_end_to_end import TestSchema
  from petastorm.tf_utils import tf_tensors, _numpy_to_tf_dtypes
  from petastorm.tests.test_tf_utils import create_tf_graph
label_desc: Use image node_id 2 for calling the ReaderMockTest obj's underlying member method code with example usage: obj.test_simple_read() without return types