code: def get_list_of_en_masse_change_primitives(nn, inc_or_dec="incdec"):
      """Returns the list of primitives which changes the number of units en masse."""
      ret = []
      # Change 1/2
      if nn.num_internal_layers >= 4:
          if "inc" in inc_or_dec:
              ret.extend(
                  [
                      increase_en_masse_1_2,  # increase
                      increase_en_masse_2_2,
                  ]
              )
          if "dec" in inc_or_dec:
              ret.extend(
                  [
                      decrease_en_masse_1_2,  # decrease
                      decrease_en_masse_2_2,
                  ]
              )
      # Change 1/4
      if nn.num_internal_layers >= 8:
          if "inc" in inc_or_dec:
              ret.extend(
                  [
                      increase_en_masse_1_4,  # increase
                      increase_en_masse_2_4,
                      increase_en_masse_3_4,
                      increase_en_masse_4_4,
                  ]
              )
          if "dec" in inc_or_dec:
              ret.extend(
                  [
                      decrease_en_masse_1_4,  # decrease
                      decrease_en_masse_2_4,
                      decrease_en_masse_3_4,
                      decrease_en_masse_4_4,
                  ]
              )
      # Change 1/8
      if nn.num_internal_layers >= 16:
          if "inc" in inc_or_dec:
              ret.extend(
                  [
                      increase_en_masse_1_8,  # increase
                      increase_en_masse_2_8,
                      increase_en_masse_3_8,
                      increase_en_masse_4_8,
                      increase_en_masse_5_8,
                      increase_en_masse_6_8,
                      increase_en_masse_7_8,
                      increase_en_masse_8_8,
                  ]
              )
          if "dec" in inc_or_dec:
              ret.extend(
                  [
                      decrease_en_masse_1_8,  # decrease
                      decrease_en_masse_2_8,
                      decrease_en_masse_3_8,
                      decrease_en_masse_4_8,
                      decrease_en_masse_5_8,
                      decrease_en_masse_6_8,
                      decrease_en_masse_7_8,
                      decrease_en_masse_8_8,
                  ]
              )
      return ret
  
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 26 for calling a global function with example usage: get_list_of_en_masse_change_primitives(nn, inc_or_dec) and returns: ret