code: def is_tarfile(filename):
      return is_archive(filename, formats=("tar", "gnu", "pax"))
  
imports: import time
  from libarchive import is_archive, Entry, SeekableArchive
  from tarfile import DEFAULT_FORMAT, USTAR_FORMAT, GNU_FORMAT, PAX_FORMAT, ENCODING
  from tarfile import REGTYPE, AREGTYPE, LNKTYPE, SYMTYPE, DIRTYPE, FIFOTYPE, CONTTYPE, CHRTYPE, BLKTYPE, GNUTYPE_SPARSE
label_desc: Use image node_id 1 for calling a global function with example usage: is_tarfile(filename) and returns: is_archive