code: def test_read_write_unicode(self, tmpdir, text_en):
      expected = text_en
      for ext in (".txt", ".gz", ".bz2", ".xz"):
          filepath = str(
              tmpdir.join("test_read_write_file_unicode" + ext)
          )
          io.write_text(expected, filepath, mode="wt", make_dirs=True)
          observed = next(io.read_text(filepath, mode="rt"))
          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 TestTextIO obj's underlying member method code with example usage: obj.test_read_write_unicode(tmpdir, text_en) without return types