code: def get_info(self):
          
          info = {
              "name":     self.name,
              "mode":     self.mode & 0o7777,
              "uid":      self.uid,
              "gid":      self.gid,
              "size":     self.size,
              "mtime":    self.mtime,
              "chksum":   self.chksum,
              "type":     self.type,
              "linkname": self.linkname,
              "uname":    self.uname,
              "gname":    self.gname,
              "devmajor": self.devmajor,
              "devminor": self.devminor
          }
  
          if info["type"] == DIRTYPE and not info["name"].endswith("/"):
              info["name"] += "/"
  
          return info
docs: Return the TarInfo's attributes as a dictionary.