code: def from_config(cls, cfg, *args, **kwargs):
      # backbone
      backbone = create(cfg["backbone"])
      # fpn
      kwargs = {"input_shape": backbone.out_shape}
      neck = create(cfg["neck"], **kwargs)
      # head
      kwargs = {"input_shape": neck.out_shape}
      clr_head = create(cfg["clr_head"], **kwargs)
  
      return {
          "backbone": backbone,
          "neck": neck,
          "clr_head": clr_head,
      }
  
file_path: PaddleDetection/ppdet/modeling/architectures/clrnet.py
imports: from .meta_arch import BaseArch
  from ppdet.core.workspace import register, create
  from paddle import in_dynamic_mode
label_desc: Use image node_id 2 for calling the CLRNet obj's underlying member method code with example usage: obj.from_config(cls, cfg) and returns: dict