code: def recompile_from_code(code: str, global_vars: dict):
      func_dict = {}
      global_vars = {
          **global_vars,
          "inf": math.inf,
          "nan": math.nan,
          "NoneType": type(None),
          "torch": torch,
          "device": torch.device,
      }
      exec(code, global_vars, func_dict)
      return func_dict["forward"]
  
imports: import math
  import torch
  from pytorchyolo import models
  from nni.common.concrete_trace_utils import concrete_trace
label_desc: Use image node_id 1 for calling a global function with example usage: recompile_from_code(code, global_vars) and returns: func_dict