class_docstr: Test to read data from LIT JSONL format.
class_docstr_tok: ["Test","to","read","data","from","LIT","JSONL","format","."]
code: def test_write_roundtrip(self):
      tempdir = self.create_tempdir()
      output_base = os.path.join(
          tempdir.full_path, "test_dataset.lit.jsonl"
      )
      lit_dataset.write_examples(self.sample_examples, output_base)
      lit_dataset.write_spec(self.data_spec, output_base + ".spec")
  
      # Read back and compare contents
      ds = lit_dataset.load_lit_format(output_base)
      self.assertEqual(self.data_spec, ds.spec())
      self.assertEqual(self.sample_examples, ds.examples)
  
imports: import os
  import types
  from absl.testing import absltest
  from absl.testing import parameterized
  from lit_nlp.api import dataset
  from lit_nlp.api import types
  import numpy
label_desc: Use image node_id 5 for calling the DatasetLoadingTest obj's underlying member method code with example usage: obj.test_write_roundtrip() without return types