docs: private static void handleLegacyWeightInitFromJson(String json, Layer layer, ObjectMapper mapper, JsonNode vertices) {
          if (layer instanceof BaseLayer && ((BaseLayer) layer).getWeightInitFn() == null) {
              String layerName = layer.getLayerName();
  
              try {
                  if (vertices == null) {
                      JsonNode jsonNode = mapper.readTree(json);
                      vertices = jsonNode.get("vertices");
                  }
  
                  JsonNode vertexNode = vertices.get(layerName);
                  JsonNode layerVertexNode = vertexNode.get("LayerVertex");
                  if (layerVertexNode == null || !layerVertexNode.has("layerConf")
                          || !layerVertexNode.get("layerConf").has("layer")) {
                      return;
                  }
                  JsonNode layerWrapperNode = layerVertexNode.get("layerConf").get("layer");
  
                  if (layerWrapperNode == null || layerWrapperNode.size() != 1) {
                      return;
                  }
  
                  JsonNode layerNode = layerWrapperNode.elements().next();
                  JsonNode weightInit = layerNode.get("weightInit"); //Should only have 1 element: "dense", "output", etc
                  JsonNode distribution = layerNode.get("dist");
  
                  Distribution dist = null;
                  if(distribution != null) {
                      dist = mapper.treeToValue(distribution, Distribution.class);
                  }
  
                  if (weightInit != null) {
                      final IWeightInit wi = WeightInit.valueOf(weightInit.asText()).getWeightInitFunction(dist);
                      ((BaseLayer) layer).setWeightInitFn(wi);
                  }
  
              } catch (IOException e) {
                  log.warn("Layer with null ActivationFn field or pre-0.7.2 activation function detected: could not parse JSON",
                          e);
              }
          }
      }