class_docstr: Benchmarks for `tf.data.experimental.CsvDataset`.
class_docstr_tok: ["Benchmarks","for","`","tf.data.experimental.CsvDataset","`","."]
code: def benchmark_csv_dataset_with_strings(self):
      self._set_up(self.STR_VAL)
      for i in range(len(self._filenames)):
          num_cols = self._num_cols[i]
          kwargs = {"record_defaults": [[""]] * num_cols}
          dataset = core_readers.TextLineDataset(
              self._filenames[i]
          ).repeat()
          dataset = readers.CsvDataset(
              self._filenames[i], **kwargs
          ).repeat()  # pylint: disable=cell-var-from-loop
          self._run_benchmark(
              dataset=dataset,
              num_cols=num_cols,
              prefix="csv_strings_fused_dataset",
              benchmark_id=4,
          )
      self._tear_down()
  
file_path: tensorflow/tensorflow/python/data/experimental/benchmarks/csv_dataset_benchmark.py
imports: import os
  import string
  import tempfile
  from tensorflow.python.data.benchmarks import benchmark_base
  from tensorflow.python.data.experimental.ops import readers
  from tensorflow.python.data.ops import readers
  from tensorflow.python.ops import parsing_ops
  from tensorflow.python.platform import gfile
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 7 for calling the CsvDatasetBenchmark obj's underlying member method code with example usage: obj.benchmark_csv_dataset_with_strings() without return types