code: public Function<String, Map<String, Double>> categorizationTree(Map<String, List<String>> categories, int depth) {
      return categorizationTree(categories, depth, "");
    }
docs: Categorization tree function.
  
  @param categories the categories
  @param depth      the depth
  @return the function