code: def test_tar_add_files():
      archive._make_dirs("one")
      archive._make_dirs("two")
  
      with open("one/one.txt", "w") as f:
          f.write("one")
  
      with open("two/two.txt", "w") as f:
          f.write("two")
      tar_path = yatest.common.output_path(
          "test_tar_multiple_paths.tar"
      )
      archive.tar(
          [
              ("one/one.txt", "one.txt"),
              ("two/two.txt", "two.txt"),
              ("one/one.txt", "one/one.txt"),
              ("two/two.txt", "two/two.txt"),
          ],
          tar_path,
      )
  
      expected_tar_members = [
          "one.txt",
          "two.txt",
          "one/one.txt",
          "two/two.txt",
      ]
  
      with tarfile.open(tar_path) as tar:
          for m in expected_tar_members:
              assert tar.getmember(m)
  
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 6 for calling a global function with example usage: test_tar_add_files() without return types