code: def _get_change_ratio_from_change_frac(change_frac, inc_or_dec):
      """Gets the change ratio from the change fraction, i.e. 1 +/- change_frac depending
      on inc_or_dec."""
      if inc_or_dec.lower() == "increase":
          return 1 + abs(change_frac)
      elif inc_or_dec.lower() == "decrease":
          return 1 - abs(change_frac)
      else:
          raise ValueError(
              "change_ratio should be one of 'increase' or 'decrease'."
          )
  
imports: from argparse import Namespace
  from copy import deepcopy
  import numpy
  from .neural_network import ConvNeuralNetwork, MultiLayerPerceptron, MLP_RECTIFIERS, MLP_SIGMOIDS, is_a_pooling_layer_label, is_a_conv_layer_label, CNNImageSizeMismatchException, CNNNoConvAfterIPException
  from ..utils.general_utils import reorder_list_or_array, reorder_rows_and_cols_in_matrix
  from ..utils.option_handler import get_option_specs, load_options
  from ..utils.reporters import get_reporter
label_desc: Use image node_id 21 for calling a global function with example usage: _get_change_ratio_from_change_frac(change_frac, inc_or_dec) and returns: unknown, unknown