code: def test_onerror_noretry():
      archive._make_dirs("onerror_noretry")
  
      with open("onerror_noretry/one.txt", "w") as f:
          f.write("one")
      with open("onerror_noretry/two.txt", "w") as f:
          f.write("two")
  
      archive._make_dirs("onerror_noretry/dir")
  
      os.chmod("onerror_noretry/one.txt", 0o0222)
      os.chmod("onerror_noretry/dir", 0o0222)
      tar_path = yatest.common.output_path("onerror_noretry.tar")
  
      try:
          with open(tar_path, "w") as afile:
              archive.tar(
                  "onerror_noretry", afile, onerror=lambda *args: False
              )
  
          with tarfile.open(tar_path) as tar:
              tar.getmembers() == ["onerror_noretry/two.txt"]
      finally:
          os.chmod("onerror_noretry/one.txt", 0o0555)
          os.chmod("onerror_noretry/dir", 0o0555)
  
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 19 for calling a global function with example usage: test_onerror_noretry() without return types