code: def get_in_channels(model_cfg):
      if "backbone" in model_cfg:
          return model_cfg["backbone"].get("in_channels", None)
      else:
          return model_cfg.get("in_channels", None)
  
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 14 for calling a global function with example usage: get_in_channels(model_cfg) and returns: model_cfg, model_cfg