code: def test_read_write_unicode_lines(self, tmpdir, doc_en):
      expected = [
          {"idx": i, "sent": sent.text}
          for i, sent in enumerate(doc_en.sents)
      ]
      for ext in (".json", ".json.gz", ".json.bz2", ".json.xz"):
          filepath = str(
              tmpdir.join("test_read_write_json_lines_unicode" + ext)
          )
          io.write_json(
              expected, filepath, mode="wt", make_dirs=True, lines=True
          )
          observed = list(io.read_json(filepath, mode="rt", lines=True))
          assert observed == expected
  
imports: import os
  import tarfile
  import zipfile
  import numpy
  import pytest
  from scipy import sparse
  from textacy import io, utils
label_desc: Use image node_id 4 for calling the TestJSONIO obj's underlying member method code with example usage: obj.test_read_write_unicode_lines(tmpdir, doc_en) without return types