class_docstr: [summary]
  
  Args:
    test {[type]} -- [description]
docstr: Test read file with dataset
docstr_tok: ["Test","read","file","with","dataset"]
code: def _test_read_file_offset_and_dataset(self):
      """Test read file with dataset"""
      # Note: disabled for now. Will enable once
      # all moved to eager mode
      # Setup and check preconditions.
      file_name = self._path_to("readfiledataset")
      if tf.io.gfile.exists(file_name):
          tf.io.gfile.remove(file_name)
  
      # Write data.
      with tf.io.gfile.GFile(file_name, "w") as w:
          w.write("Hello1,world1!\nHello2,world2!")
      dataset = tf.data.experimental.CsvDataset(
          file_name, [tf.string, tf.string]
      )
      expected = [[b"Hello1", b"world1!"], [b"Hello2", b"world2!"]]
      i = 0
      for v in dataset:
          v0, v1 = v
          assert v0.numpy() == expected[i][0]
          assert v1.numpy() == expected[i][1]
          i += 1
      assert i == 2
  
imports: import os
  import subprocess
  import sys
  import pytest
  import tensorflow
  import tensorflow_io
label_desc: Use image node_id 13 for calling the AZFSTestBase obj's underlying member method code with example usage: obj._test_read_file_offset_and_dataset() without return types