code: def test_check_archive():
      assert archive.check_tar(os.path.join(data_dir, "sample.tar"))
      assert archive.check_tar(os.path.join(data_dir, "sample.tar.gz"))
  
imports: import errno
  import hashlib
  import os
  import shutil
  import socket
  import tarfile
  import threading
  import six
  import pytest
  import yatest.common
  import library.python.archive
label_desc: Use image node_id 9 for calling a global function with example usage: test_check_archive() without return types