code: def dict_to_stats(cfg_dict):
      from yacs.config import CfgNode as CN
  
      set_cfg(cfg)
      cfg_new = CN(cfg_dict)
      cfg.merge_from_other_cfg(cfg_new)
      stats = get_stats()
      set_cfg(cfg)
      return stats
  
imports: import math
  from graphgym.config import cfg, set_cfg
  from graphgym.model_builder import create_model
label_desc: Use image node_id 4 for calling a global function with example usage: dict_to_stats(cfg_dict) and returns: stats