code: def _get_all_markdown_links(
      root: Path, files: tp.List[Path]
  ) -> tp.List[MarkdownLink]:
      """Returns a list of all existing markdown links"""
      pattern = MarkdownLink.regex
      links = []
      for file in files:
          for match in pattern.finditer(file.read_text()):
              links.append(
                  MarkdownLink(
                      root,
                      file,
                      match.group("name"),
                      match.group("link"),
                  )
              )
      return links
  
file_path: submitit/submitit/test_documentation.py
imports: import re
  import typing
  from pathlib import Path
  import submitit
label_desc: Use image node_id 3 for calling a global function with example usage: _get_all_markdown_links(root, files) and returns: links