class_docstr: Base class for setting up and testing TextLineDataset.
code: def _createFiles(
      self, num_files, num_lines, crlf=False, compression_type=None
  ):
      filenames = []
      for i in range(num_files):
          fn = os.path.join(self.get_temp_dir(), "text_line.%d.txt" % i)
          filenames.append(fn)
          contents = []
          for j in range(num_lines):
              contents.append(self._lineText(i, j))
              # Always include a newline after the record unless it is
              # at the end of the file, in which case we include it
              if j + 1 != num_lines or i == 0:
                  contents.append(b"\r\n" if crlf else b"\n")
          contents = b"".join(contents)
  
          if not compression_type:
              with open(fn, "wb") as f:
                  f.write(contents)
          elif compression_type == "GZIP":
              with gzip.GzipFile(fn, "wb") as f:
                  f.write(contents)
          elif compression_type == "ZLIB":
              contents = zlib.compress(contents)
              with open(fn, "wb") as f:
                  f.write(contents)
          else:
              raise ValueError(
                  "Unsupported compression_type", compression_type
              )
  
      return filenames
  
imports: import gzip
  import os
  import pathlib
  import zlib
  from absl.testing import parameterized
  from tensorflow.python.data.kernel_tests import checkpoint_test_base
  from tensorflow.python.data.kernel_tests import test_base
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.data.ops import readers
  from tensorflow.python.framework import combinations
  from tensorflow.python.framework import errors
  from tensorflow.python.platform import test
  from tensorflow.python.util import compat
label_desc: Use image node_id 2 for calling the TextLineDatasetTestBase obj's underlying member method code with example usage: obj._createFiles(num_files, num_lines, crlf, compression_type) and returns: filenames