code: def get_type(self):
      for attr, type in (
          ("isdir", DIRTYPE),
          ("isfile", REGTYPE),
          ("issym", SYMTYPE),
          ("isfifo", FIFOTYPE),
          ("ischr", CHRTYPE),
          ("isblk", BLKTYPE),
      ):
          if getattr(self, attr)():
              return type
  
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 4 for calling the TarInfo obj's underlying member method code with example usage: obj.get_type() and returns: type