code: def _run_project_dir(run):
      project_dir = run_util.run_project_dir(run)
      if not project_dir:
          cli.error(
              f"unexpected missing project directory for run {run.id} ({run.opref})\n"
              "Skip this check by using --target-dir"
          )
      return project_dir
  
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 8 for calling a global function with example usage: _run_project_dir(run) and returns: project_dir