code: def get_block_layer_num(net_configs):
      if len(net_configs) == 1:
          net_config = net_configs[0]
          block_layer_num = []
          _count = 0
          for layer in net_config.layer_cascade.layers[:-1]:
              if isinstance(
                  layer, arch_search_convnet_net2net.PoolLayer
              ):
                  block_layer_num.append(_count)
                  _count = 0
              else:
                  _count += 1
          block_layer_num.append(_count)
          return arch_search_convnet_net2net.np.array([block_layer_num])
      else:
          block_layer_num = []
          for net_config in net_configs:
              block_layer_num.append(
                  arch_search_convnet_net2net.get_block_layer_num(
                      [net_config]
                  )
              )
          return arch_search_convnet_net2net.np.concatenate(
              block_layer_num, axis=0
          )
  
file_path: auptimizer/src/aup/Proposer/EASProposer.py
imports: import re
  import numpy
  import logging
label_desc: Use image node_id 3 for calling the EASProposer obj's underlying member method code with example usage: obj.get_block_layer_num(net_configs) and returns: arch_search_convnet_net2net, arch_search_convnet_net2net