code: public static void validatePath(String path) throws InvalidPathException {
      boolean invalid = (path == null || path.isEmpty());
      if (!OSUtils.isWindows()) {
        invalid = (invalid || !path.startsWith(AlluxioURI.SEPARATOR));
      }
  
      if (invalid) {
        throw new InvalidPathException(ExceptionMessage.PATH_INVALID.getMessage(path));
      }
    }
docs: Checks if the given path is properly formed.
  
  @param path The path to check
  @throws InvalidPathException If the path is not properly formed