code: def check_tar(tar_file_path):
      if os.path.isfile(tar_file_path) or os.path.islink(tar_file_path):
          return libarchive.is_archive(tar_file_path)
      return False
  
imports: import errno
  import logging
  import os
  import random
  import shutil
  import stat
  import string
  import sys
  import six
  import libarchive
  import libarchive._libarchive
  from pathlib2 import PurePath
label_desc: Use image node_id 7 for calling a global function with example usage: check_tar(tar_file_path) and returns: False, libarchive