code: def _get_resnet_spec(num_layers):
      assert (num_layers - 2) % 6 == 0
  
      n = (num_layers - 2) // 6
      channels = [16, 16, 32, 64]
      layers = [n] * (len(channels) - 1)
      return layers, channels
  
imports: from __future__ import division
  import os
  from mxnet.gluon.block import HybridBlock
  from mxnet.gluon import nn
  from mxnet.gluon.nn import BatchNorm
  from mxnet import cpu
label_desc: Use image node_id 2 for calling a global function with example usage: _get_resnet_spec(num_layers) and returns: layers,  channels