code: def set_in_channels(model_cfg, in_channels):
      model_cfg = model_cfg.copy()
      if ("backbone_l" in model_cfg) and ("backbone_r" in model_cfg):
          model_cfg["backbone_l"]["in_channels"] = in_channels
          model_cfg["backbone_r"]["in_channels"] = in_channels
      else:
          model_cfg["in_channels"] = in_channels
  
imports: import os
  import paddle
  from paddleseg.utils import logger
label_desc: Use image node_id 3 for calling a global function with example usage: set_in_channels(model_cfg, in_channels) without return types