code: def all_urls_from_files():
      urls = set()
      for root, dirs, files in os.walk(HERE):
          if os.path.relpath(root, HERE) in [
              "release-notes",
              "site",
              "build",
              "assets",
              "_templates",
          ]:
              while dirs:
                  dirs.pop(0)
              continue
          for file in files:
              base, ext = os.path.splitext(file)
              if ext not in [".rst", ".md"]:
                  continue
              if file == "README.md":
                  continue
              url = os.path.relpath(os.path.join(root, base), HERE)
              urls.add(url)
      return urls
  
file_path: determined/docs/redirects.py
imports: import argparse
  import collections
  import itertools
  import json
  import os
  import pathlib
  import subprocess
  import sys
label_desc: Use image node_id 7 for calling a global function with example usage: all_urls_from_files() and returns: urls