class_docstr: Informational class which holds the details about an archive member given by a XarFile.
class_docstr_tok: ["Informational","class","which","holds","the","details","about","an","archive","member","given","by","a","XarFile","."]
code: def name(self) -> str:
      if self.arctype == "tar":
          return self._info.name
      return self._info.filename
  
imports: import os
  import tarfile
  import zipfile
  from typing import Callable
  from typing import Generator
  from typing import List
  import rarfile
label_desc: Use image node_id 2 for calling the XarInfo obj's underlying member method code with example usage: obj.name() and returns: self, self