code: def test_read_write_docs_binary(self, tmpdir, doc_en):
      expected = [tok.lower_ for tok in doc_en]
      filepath = str(
          tmpdir.join("test_read_write_spacy_docs_binary.bin")
      )
      io.write_spacy_docs(
          doc_en, filepath, make_dirs=True, format="binary"
      )
      with pytest.raises(ValueError):
          next(io.read_spacy_docs(filepath, format="binary", lang=None))
      observed = [
          tok.lower_
          for doc in io.read_spacy_docs(
              filepath, format="binary", lang="en_core_web_sm"
          )
          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 2 for calling the TestSpacyIO obj's underlying member method code with example usage: obj.test_read_write_docs_binary(tmpdir, doc_en) without return types