code: def normpath(path):
      
      return os.path.abspath(os.path.normpath(os.path.expanduser(path)))
docs: Normalize a path.
  
      Expands ~'s, resolves relative paths, normalizes and returns
      an absolute path.