code: def set_in_channels(model_cfg, in_channels):
      model_cfg = model_cfg.copy()
      if "backbone" in model_cfg:
          model_cfg["backbone"]["in_channels"] = in_channels
      else:
          model_cfg["in_channels"] = in_channels
      return model_cfg
  
imports: import os
  import contextlib
  import tempfile
  import random
  from urllib.parse import urlparse, unquote
  import yaml
  import numpy
  import paddle
  import cv2
  from paddleseg.utils import logger, seg_env, get_sys_env
  from paddleseg.utils.download import download_file_and_uncompress
label_desc: Use image node_id 15 for calling a global function with example usage: set_in_channels(model_cfg, in_channels) and returns: model_cfg