code: def test_long_filename():
      # DEVTOOLS-3546
      root = yatest.common.output_path("archive")
      filename = os.path.join(
          root,
          os.sep.join([s * 100 for s in "01234567890"]),
          "file.txt",
      )
      os.makedirs(os.path.dirname(filename))
      tar_path = yatest.common.output_path("long.tar")
  
      with tarfile.open(filename, "w:") as tar:
          tar.add(root)
  
      with open(filename, "w") as f:
          f.write("long")
      archive.tar([root], tar_path)
  
      with tarfile.open(tar_path) as tar:
          assert tar.getmember(
              "archive/{}".format(os.path.relpath(filename, root))
          )
  
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 11 for calling a global function with example usage: test_long_filename() without return types