code: def check_incompatible_args(incompatible, args, ctx=None):
      for val in incompatible:
          arg1_name, opt1, arg2_name, opt2 = _incompatible_arg_items(
              val
          )
          if getattr(args, arg1_name, None) and getattr(
              args, arg2_name
          ):
              err_help = (
                  f"\nTry '{ctx.command_path} --help' for more information."
                  if ctx
                  else ""
              )
              cli.error(
                  f"{opt1} and {opt2} cannot both be specified{err_help}"
              )
  
imports: import logging
  import os
  import typing
  from guild import cli
  from guild import click_util
  from guild import config
label_desc: Use image node_id 15 for calling a global function with example usage: check_incompatible_args(incompatible, args, ctx) without return types