code: def test_read_write_sparse_csc_compressed(self, tmpdir):
      expected = sp.csc_matrix(
          (
              np.array([1, 2, 3, 4, 5, 6]),
              (
                  np.array([0, 0, 1, 2, 2, 2]),
                  np.array([0, 2, 2, 0, 1, 2]),
              ),
          ),
          shape=(3, 3),
      )
      filepath = str(
          tmpdir.join(
              "test_read_write_sparse_matrix_csc_compressed.npz"
          )
      )
      io.write_sparse_matrix(expected, filepath, compressed=True)
      observed = io.read_sparse_matrix(filepath, kind="csc")
      assert abs(observed - expected).nnz == 0
  
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 TestMatrixIO obj's underlying member method code with example usage: obj.test_read_write_sparse_csc_compressed(tmpdir) without return types