code: def test_extract_tar_strip_components(components, expected):
      out_tar = yatest.common.output_path("out_tar")
      extract_tar(
          os.path.join(data_dir, "sample.tar"),
          out_tar,
          strip_components=components,
      )
      files = set(os.listdir(out_tar))
      assert files == set(expected)
  
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 4 for calling a global function with example usage: test_extract_tar_strip_components(components, expected) without return types