code: def test_unpack_archive(self, tmpdir):
      data = "Here's some text data to pack and unpack."
      fpath_txt = str(tmpdir.join("test_unpack_archive.txt"))
      with io.open_sesame(fpath_txt, mode="wt") as f:
          f.write(data)
      fpath_zip = str(tmpdir.join("test_unpack_archive.zip"))
      with zipfile.ZipFile(fpath_zip, "w") as f:
          f.write(fpath_txt)
      io.unpack_archive(fpath_zip, extract_dir=tmpdir)
      fpath_tar = str(tmpdir.join("test_unpack_archive.tar"))
      with tarfile.TarFile(fpath_tar, "w") as f:
          f.add(fpath_txt)
      io.unpack_archive(fpath_tar, extract_dir=tmpdir)
      io.unpack_archive(fpath_txt, extract_dir=tmpdir)
  
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 6 for calling the TestIOUtils obj's underlying member method code with example usage: obj.test_unpack_archive(tmpdir) without return types