parameters: (name)
docstring: Return True if name points to a tar archive that we
         are able to handle, else return False.
docstring_summary: Return True if name points to a tar archive that we
         are able to handle, else return False.
docstring_tokens: Return True if name points to a tar archive that we are able to handle else return False .
function: def is_tarfile(name):
      """Return True if name points to a tar archive that we
         are able to handle, else return False.
      """
      try:
          t = open(name)
          t.close()
          return True
      except TarError:
          return False
function_tokens: def is_tarfile ( name ) : try : t = open ( name ) t . close ( ) return True except TarError : return False