code: def test_read_write_docs(self, tmpdir, doc_en):
      expected = [tok.lower_ for tok in doc_en]
      for ext in (".pkl", ".pkl.gz", ".pkl.bz2", ".pkl.xz"):
          filepath = str(
              tmpdir.join("test_read_write_spacy_docs" + ext)
          )
          io.write_spacy_docs(doc_en, filepath, make_dirs=True)
          observed = [
              tok.lower_
              for doc in io.read_spacy_docs(filepath)
              for tok in doc
          ]
          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 1 for calling the TestSpacyIO obj's underlying member method code with example usage: obj.test_read_write_docs(tmpdir, doc_en) without return types