docs: private int getBatchNormMode(Map<String, Object> layerConfig, boolean enforceTrainingConfig)
              throws InvalidKerasConfigurationException, UnsupportedKerasConfigurationException {
          Map<String, Object> innerConfig = KerasLayerUtils.getInnerLayerConfigFromConfig(layerConfig, conf);
          int batchNormMode = 0;
          if (this.kerasMajorVersion == 1 & !innerConfig.containsKey(LAYER_FIELD_MODE))
              throw new InvalidKerasConfigurationException(
                      "Keras BatchNorm layer config missing " + LAYER_FIELD_MODE + " field");
          if (this.kerasMajorVersion == 1)
              batchNormMode = (int) innerConfig.get(LAYER_FIELD_MODE);
          switch (batchNormMode) {
              case LAYER_BATCHNORM_MODE_1:
                  throw new UnsupportedKerasConfigurationException("Keras BatchNormalization mode "
                          + LAYER_BATCHNORM_MODE_1 + " (sample-wise) not supported");
              case LAYER_BATCHNORM_MODE_2:
                  throw new UnsupportedKerasConfigurationException(
                          "Keras BatchNormalization (per-batch statistics during testing) "
                                  + LAYER_BATCHNORM_MODE_2 + " not supported");
          }
          return batchNormMode;
      }