code: def check_cfg_version(cfg: AttrDict):
      """
      Check the config version
  
      Inputs:
          cfg (AttrDict): the config to be checked
      """
  
      cfg_version = cfg.VERSION
  
      # if the versions already match, no upgrade is required.
      if cfg_version == LATEST_CFG_VERSION:
          logging.info(
              f"Provided Config has latest version: {LATEST_CFG_VERSION}"
          )
          return
  
      # make sure the config is valid: the provided config version must be
      # less than or equal to VISSL latest config version.
      assert cfg_version <= LATEST_CFG_VERSION, (
          f"Provided Config version is: {cfg_version}. "
          f"VISSL latest config version is: {LATEST_CFG_VERSION}. "
          "Config version is not supported in VISSL. Max supported "
          f"version is {LATEST_CFG_VERSION}"
      )
  
      # TODO: support version conversion when needed
      if cfg_version < LATEST_CFG_VERSION:
          raise RuntimeError(
              "Please upgrade your config to latest VISSL configuration setup. "
              "Follow the change log to see what has changed in configs and how to upgrade."
          )
  
label_desc: Use image node_id 1 for calling a global function with example usage: check_cfg_version(cfg) without return types