code: def _check_merge_without_yes(args, ctx):
      from guild import cli
  
      if not args.preview and not args.yes:
          cli.error(
              "--yes must be specified for this command when --preview is not used\n"
              f"Try '{ctx.command_path} --help' for more information."
          )
  
file_path: guildai/guild/commands/api_merge.py
imports: import os
  import click
  from guild import click_util
  from guild import util
  from .None import api_support
  from .None import runs_merge
label_desc: Use image node_id 2 for calling a global function with example usage: _check_merge_without_yes(args, ctx) without return types