code: def gettarinfo(name=None, arcname=None, fileobj=None):
      if name:
          f = name
      elif fileobj:
          f = fileobj
      entry = self.entry_class.from_file(f)
      if arcname:
          entry.pathname = arcname
      return entry
  
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 8 for calling the TarFile obj's underlying member method code with example usage: obj.gettarinfo(name, arcname, fileobj) and returns: entry