code: def _try_vcs_status_check_replace(merge):
      """Tries to apply a VCS check for replacement of files in target dir.
  
      If target dir is managed by a supported VCS, performs a
      VCS-specific replacement check. See `_check_vcs_status` for
      VCS-specific logic.
  
      If target dir is not managed by a known VCS, performs the default
      replacement check. See `_fail_if_replacing` for this behavior.
      """
      try:
          vcs_status = vcs_util.status(merge.target_dir)
      except vcs_util.UnsupportedRepo:
          _fail_if_replacing(merge)
      else:
          _check_vcs_status(vcs_status, merge)
  
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 14 for calling a global function with example usage: _try_vcs_status_check_replace(merge) without return types