code: def get_symbol():
      """
      Adapted from https://github.com/tornadomeet/ResNet/blob/master/train_resnet.py
      Original author Wei Wu
      """
      num_classes = config.embedding_size
      num_layers = config.num_layers
      if num_layers >= 500:
          filter_list = [64, 256, 512, 1024, 2048]
          bottle_neck = True
      else:
          filter_list = [64, 64, 128, 256, 512]
          bottle_neck = False
      num_stages = 4
      if num_layers == 18:
          units = [2, 2, 2, 2]
      elif num_layers == 34:
          units = [3, 4, 6, 3]
      elif num_layers == 49:
          units = [3, 4, 14, 3]
      elif num_layers == 50:
          units = [3, 4, 14, 3]
      elif num_layers == 74:
          units = [3, 6, 24, 3]
      elif num_layers == 90:
          units = [3, 8, 30, 3]
      elif num_layers == 98:
          units = [3, 4, 38, 3]
      elif num_layers == 99:
          units = [3, 8, 35, 3]
      elif num_layers == 100:
          units = [3, 13, 30, 3]
      elif num_layers == 134:
          units = [3, 10, 50, 3]
      elif num_layers == 136:
          units = [3, 13, 48, 3]
      elif num_layers == 140:
          units = [3, 15, 48, 3]
      elif num_layers == 124:
          units = [3, 13, 40, 5]
      elif num_layers == 160:
          units = [3, 24, 49, 3]
      elif num_layers == 101:
          units = [3, 4, 23, 3]
      elif num_layers == 152:
          units = [3, 8, 36, 3]
      elif num_layers == 200:
          units = [3, 24, 36, 3]
      elif num_layers == 269:
          units = [3, 30, 48, 8]
      else:
          raise ValueError(
              "no experiments done on num_layers {}, you can do it yourself".format(
                  num_layers
              )
          )
  
      net = resnet(
          units=units,
          num_stages=num_stages,
          filter_list=filter_list,
          num_classes=num_classes,
          bottle_neck=bottle_neck,
      )
  
      return net
  
file_path: insightface/recognition/partial_fc/mxnet/symbol/resnet.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import sys
  import os
  import mxnet
  import numpy
  from symbol import symbol_utils
  from default import config
label_desc: Use image node_id 10 for calling a global function with example usage: get_symbol() and returns: net