code: def warn_link_failures() -> Iterator[List[str]]:
      link_failures: List[str] = []
      try:
          yield link_failures
      finally:
          if link_failures:
              msg = LINK_FAILURE_MESSAGE.format(
                  CacheLinkError.SUPPORT_LINK,
                  " ".join(link_failures),
              )
              ui.error_write(msg)
  
file_path: dvc/dvc/repo/add.py
imports: import os
  from contextlib import contextmanager
  from typing import TYPE_CHECKING, Dict, Iterator, List, NamedTuple, Optional, Tuple, Union
  from dvc.exceptions import CacheLinkError, DvcException, OutputDuplicationError, OutputNotFoundError, OverlappingOutputPathsError
  from dvc.repo.scm_context import scm_context
  from dvc.ui import ui
  from dvc.utils import glob_targets, resolve_output, resolve_paths
  from .None import locked
label_desc: Use image node_id 5 for calling a global function with example usage: warn_link_failures() without return types