code: def check_config_conflicts(config: CfgNode):
      r"""check the conflicts of global config."""
      if config.task == "generation":
          assert (
              config["train"].teacher_forcing == True
          ), "You should use teacher forcing to train generation!"
  
      if config.task == "generation":
          if (
              config.dataloader.max_seq_length
              >= config.generation.max_length
          ):
              logger.warning(
                  "In generation, your config.generation.max_length is shorter than config.max_seq_length"
                  "This can lead to unexpected behavior. You should consider increasing ``config.generation.max_length``."
              )
              raise RuntimeError
  
file_path: OpenPrompt/openprompt/utils/utils.py
imports: from math import ceil
  import os
  import shutil
  from typing import List
  import inspect
  from collections import namedtuple
  import torch
  from yacs.config import CfgNode
  from openprompt.utils.logging import logger
label_desc: Use image node_id 3 for calling a global function with example usage: check_config_conflicts(config) without return types