code: def resolve_cfg_references(args_cfg, all_ops_cfgs):
      if len(args_cfg) == 0:
          return {}
      args_cfg = args_cfg.copy()
      base_op = args_cfg.pop(CFG_BASED_ON, None)
      base_cfg = all_ops_cfgs.get(base_op, {})
      result_cfg = resolve_cfg_references(base_cfg, all_ops_cfgs)
      result_cfg.update(args_cfg)
      return result_cfg
  
file_path: mxnet/tests/python/dnnl/op_cfg.py
imports: from collections import namedtuple
  from itertools import product
  from functools import partial
  import mxnet
  from mxnet.base import _is_np_op, _NP_OP_PREFIX, _NP_EXT_OP_PREFIX, _NP_INTERNAL_OP_PREFIX, _OP_NAME_PREFIX_LIST
label_desc: Use image node_id 7 for calling a global function with example usage: resolve_cfg_references(args_cfg, all_ops_cfgs) and returns: result_cfg, dict