code: def regnet_cfg_to_anynet_cfg():
      """Convert RegNet cfg to AnyNet cfg format (note: alters global cfg)."""
      assert cfg.MODEL.TYPE == "regnet"
      ws, ds, ss, bs, gs = generate_regnet_full()
      cfg.MODEL.TYPE = "anynet"
      cfg.ANYNET.STEM_TYPE = cfg.REGNET.STEM_TYPE
      cfg.ANYNET.STEM_W = cfg.REGNET.STEM_W
      cfg.ANYNET.BLOCK_TYPE = cfg.REGNET.BLOCK_TYPE
      cfg.ANYNET.DEPTHS = ds
      cfg.ANYNET.WIDTHS = ws
      cfg.ANYNET.STRIDES = ss
      cfg.ANYNET.BOT_MULS = bs
      cfg.ANYNET.GROUP_WS = gs
      cfg.ANYNET.HEAD_W = cfg.REGNET.HEAD_W
      cfg.ANYNET.SE_ON = cfg.REGNET.SE_ON
      cfg.ANYNET.SE_R = cfg.REGNET.SE_R
  
file_path: pycls/pycls/models/regnet.py
imports: import numpy
  import pycls.models.blocks
  from pycls.core.config import cfg
  from pycls.models.anynet import AnyNet
label_desc: Use image node_id 3 for calling a global function with example usage: regnet_cfg_to_anynet_cfg() without return types