class_docstr: Tests for TFRecordObserver class and dataset/spec file functions.
class_docstr_tok: ["Tests","for","TFRecordObserver","class","and","dataset\/spec","file","functions","."]
code: def test_load_tfrecord_dataset(self):
      # Make sure an example tfrecord file exists before attempting to load
      self.test_tfrecord_observer()
      example_encoding_dataset.load_tfrecord_dataset(
          [self.dataset_path], buffer_size=2
      )
      example_encoding_dataset.load_tfrecord_dataset(
          [self.dataset_path], buffer_size=2, as_experience=True
      )
      with self.assertRaises(IOError):
          example_encoding_dataset.load_tfrecord_dataset(
              ["fake_file.tfrecord"]
          )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  import os
  import numpy
  import tensorflow
  from tf_agents.drivers import dynamic_step_driver
  from tf_agents.drivers import py_driver
  from tf_agents.drivers import test_utils
  from tf_agents.drivers import tf_driver
  from tf_agents.environments import tf_py_environment
  from tf_agents.specs import tensor_spec
  from tf_agents.trajectories import trajectory
  from tf_agents.utils import common
  from tf_agents.utils import eager_utils
  from tf_agents.utils import example_encoding_dataset
  from tf_agents.utils import test_utils
label_desc: Use image node_id 3 for calling the TFRecordsUtilsTest obj's underlying member method code with example usage: obj.test_load_tfrecord_dataset() without return types