code: def normalized_path(value):
      
      if not value:
          return
      norm = os.path.normpath(value)
      norm = os.path.abspath(os.path.expanduser(norm))
      return norm
docs: Normalize and expand a shorthand or relative path.