code: def get_cost(sym, type_dict=None, **kwargs):
      """Get the cost of the current symbolic plan by running bind on CPU.
  
      sym : Symbolic Variable
  
      """
      texec = sym.simple_bind(
          ctx=mx.gpu(), grad_req="write", type_dict=type_dict, **kwargs
      )
      return int(texec.debug_str().split("\n")[-3].split()[1])
  
file_path: insightface/recognition/arcface_mxnet/symbol/memonger_v2.py
imports: import mxnet
  import math
label_desc: Use image node_id 4 for calling a global function with example usage: get_cost(sym, type_dict) and returns: int