code: def normalize_path(path):
      # type: (AnyStr) -> AnyStr
      
  
      return os.path.normpath(
          os.path.normcase(
              os.path.abspath(os.path.expandvars(os.path.expanduser(str(path))))
          )
      )
docs: Return a case-normalized absolute variable-expanded path.
  
      :param str path: The non-normalized path
      :return: A normalized, expanded, case-normalized path
      :rtype: str