code: def _copy_params_with_flags(state):
      for name in _iter_stage_param_files(state):
          dest = os.path.join(state.run_dir, name)
          if os.path.exists(dest):
              continue
          src = os.path.join(state.project_dir, name)
          if not os.path.exists(src):
              raise SystemExit(
                  f"cannot find config file '{name}' in project "
                  f"directory {state.project_dir}"
              )
          log.info("Copying %s", name)
          util.copyfile(src, dest)
  
imports: import argparse
  import logging
  import os
  import subprocess
  import yaml
  from guild import op_util
  from guild import run
  from guild import run_manifest
  from guild import summary
  from guild import util
  from .None import dvc_util
label_desc: Use image node_id 29 for calling a global function with example usage: _copy_params_with_flags(state) without return types