code: def _checked_cwd_matches_project_dir(cwd, project_dir, run, ctx):
      if not util.compare_paths(cwd, project_dir):
          fmt_project_dir = util.format_dir(project_dir)
          cli.error(
              f"run {run.id} was created from a different project ({fmt_project_dir}) - "
              "cannot merge to the current directory by default\nUse '--target-dir .' "
              f"to override this check or try '{ctx.command_path} --help' for more "
              "information."
          )
  
imports: import os
  from guild import cli
  from guild import cmd_impl_support
  from guild import config
  from guild import exit_code
  from guild import run_merge
  from guild import run_util
  from guild import util
  from guild import vcs_util
  from .None import runs_impl
label_desc: Use image node_id 9 for calling a global function with example usage: _checked_cwd_matches_project_dir(cwd, project_dir, run, ctx) without return types