code: def expand_filepath(filepath):
      
      return os.path.abspath(os.path.expandvars(os.path.expanduser(filepath)))
docs: Expand any '~', '.', '*' variables in filepath.
  
      See also: pugnlp.futil.expand_path
  
      >>> len(expand_filepath('~')) > 3
      True