docstr: Checks that elements produced by CsvDataset match expected output.
docstr_tok: ["Checks","that","elements","produced","by","CsvDataset","match","expected","output","."]
code: def _test_dataset(
      self,
      inputs,
      expected_output,
      expected_keys,
      batch_size=1,
      num_epochs=1,
      label_name=None,
      encoding="utf-8",
      **kwargs,
  ):
      """Checks that elements produced by CsvDataset match expected output."""
      # Convert str type because py3 tf strings are bytestrings
      filenames = self._setup_files(
          inputs,
          compression_type=kwargs.get("compression_type", None),
          encoding=encoding,
      )
      dataset = self._make_csv_dataset(
          filenames,
          batch_size=batch_size,
          num_epochs=num_epochs,
          label_name=label_name,
          encoding=encoding,
          **kwargs,
      )
      self._verify_output(
          dataset,
          batch_size,
          num_epochs,
          label_name,
          expected_output,
          expected_keys,
      )
  
imports: import gzip
  import os
  import zlib
  from absl.testing import parameterized
  import numpy
  from tensorflow.python.data.experimental.ops import readers
  from tensorflow.python.data.kernel_tests import test_base
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.data.util import nest
  from tensorflow.python.framework import combinations
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.platform import test
label_desc: Use image node_id 5 for calling the MakeCsvDatasetTest obj's underlying member method code with example usage: obj._test_dataset(inputs, expected_output, expected_keys, batch_size, num_epochs, label_name, encoding) without return types