code: def lin3(data, num_filter, workspace, name, k, g=1, d=1):
      if k != 3:
          conv1 = Conv(
              data=data,
              num_filter=num_filter,
              kernel=(k, k),
              stride=(1, 1),
              pad=((k - 1) // 2, (k - 1) // 2),
              num_group=g,
              no_bias=True,
              workspace=workspace,
              name=name + "_conv",
          )
      else:
          conv1 = Conv(
              data=data,
              num_filter=num_filter,
              kernel=(k, k),
              stride=(1, 1),
              pad=(d, d),
              num_group=g,
              dilate=(d, d),
              no_bias=True,
              workspace=workspace,
              name=name + "_conv",
          )
      bn1 = mx.sym.BatchNorm(
          data=conv1,
          fix_gamma=False,
          momentum=bn_mom,
          eps=2e-5,
          name=name + "_bn",
      )
      act1 = Act(data=bn1, act_type="relu", name=name + "_relu")
      ret = act1
      return ret
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import mxnet
  import numpy
  from config import config
label_desc: Use image node_id 3 for calling a global function with example usage: lin3(data, num_filter, workspace, name, k, g, d) and returns: ret