code: def calc_reduction_layers(num_cells, num_reduction_layers):
      """Figure out what layers should have reductions."""
      reduction_layers = []
      for pool_num in range(1, num_reduction_layers + 1):
          layer_num = (
              float(pool_num) / (num_reduction_layers + 1)
          ) * num_cells
          layer_num = int(layer_num)
          reduction_layers.append(layer_num)
      return reduction_layers
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import tensorflow
label_desc: Use image node_id 1 for calling a global function with example usage: calc_reduction_layers(num_cells, num_reduction_layers) and returns: reduction_layers