class_docstr: Tests for VcfWriter.
code: def assertWrittenVCFRecordsEqual(self, path, expected_lines):
      def cleanup_line(line):
          if isinstance(line, (list, tuple)):
              return "\t".join(str(x) for x in line)
          else:
              return line
  
      expected_lines = [cleanup_line(line) for line in expected_lines]
      with epath.Path(path).open("r") as fin:
          self.assertEqual(
              [
                  line.strip()
                  for line in fin.readlines()
                  if not line.startswith("#")
              ],
              expected_lines,
          )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import absltest
  from absl.testing import parameterized
  from etils import epath
  from third_party.nucleus.io import vcf
  from third_party.nucleus.protos import reference_pb2
  from third_party.nucleus.protos import struct_pb2
  from third_party.nucleus.protos import variants_pb2
  from third_party.nucleus.testing import test_utils
  from third_party.nucleus.util import ranges
label_desc: Use image node_id 1 for calling the VcfWriterTests obj's underlying member method code with example usage: obj.assertWrittenVCFRecordsEqual(path, expected_lines) and returns: str, line