code: def test_create_add_one_file():
      archive._make_dirs("test_create")
  
      with open("test_create/test.txt", "w") as f:
          f.write("test")
  
      tar_path = yatest.common.output_path("test_create.tar")
      archive.tar("test_create/test.txt", tar_path)
  
      expected_tar_members = ["test.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 7 for calling a global function with example usage: test_create_add_one_file() without return types