code: def residual_unit(
      data, num_filter, stride, dim_match, name, bottle_neck, **kwargs
  ):
      uv = kwargs.get("version_unit", 3)
      version_input = kwargs.get("version_input", 1)
      if uv == 1:
          if version_input == 0:
              return residual_unit_v1(
                  data,
                  num_filter,
                  stride,
                  dim_match,
                  name,
                  bottle_neck,
                  **kwargs,
              )
          else:
              return residual_unit_v1_L(
                  data,
                  num_filter,
                  stride,
                  dim_match,
                  name,
                  bottle_neck,
                  **kwargs,
              )
      elif uv == 2:
          return residual_unit_v2(
              data,
              num_filter,
              stride,
              dim_match,
              name,
              bottle_neck,
              **kwargs,
          )
      elif uv == 4:
          return residual_unit_v4(
              data,
              num_filter,
              stride,
              dim_match,
              name,
              bottle_neck,
              **kwargs,
          )
      else:
          return residual_unit_v3(
              data,
              num_filter,
              stride,
              dim_match,
              name,
              bottle_neck,
              **kwargs,
          )
  
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 8 for calling a global function with example usage: residual_unit(data, num_filter, stride, dim_match, name, bottle_neck) and returns: residual_unit_v1, residual_unit_v1_L, residual_unit_v2, residual_unit_v4, residual_unit_v3