code: def get_in_channels(model_cfg):
      if "backbone_l" in model_cfg:
          return model_cfg["backbone_l"].get("in_channels", None)
      else:
          return model_cfg.get("in_channels", None)
  
imports: import os
  import paddle
  from paddleseg.utils import logger
label_desc: Use image node_id 2 for calling a global function with example usage: get_in_channels(model_cfg) and returns: model_cfg, model_cfg