code: def list_tar (archive, compression, cmd, verbosity, interactive):
      
      try:
          with tarfile.open(archive) as tfile:
              tfile.list(verbose=verbosity>1)
      except Exception as err:
          msg = "error listing %s: %s" % (archive, err)
          raise util.PatoolError(msg)
      return None
docs: List a TAR archive with the tarfile Python module.