code: def check_docs(
      filepath, image_only_transforms_links, dual_transforms_table
  ):
      with open(filepath, "r", encoding="utf8") as f:
          text = f.read()
      outdated_docs = set()
      image_only_lines_not_in_text = []
      dual_lines_not_in_text = []
      for line in image_only_transforms_links.split("\n"):
          if line not in text:
              outdated_docs.update(["Pixel-level"])
              image_only_lines_not_in_text.append(line)
      for line in dual_transforms_table.split("\n"):
          if line not in text:
              dual_lines_not_in_text.append(line)
              outdated_docs.update(["Spatial-level"])
      if outdated_docs:
          raise ValueError(
              "Docs for the following transform types are outdated: {outdated_docs_headers}. "
              "Generate new docs by executing the `python tools/{py_file} make` command "
              "and paste them to {filename}.\n"
              "# Pixel-level transforms lines not in file:\n"
              "{image_only_lines}\n"
              "# Spatial-level transforms lines not in file:\n"
              "{dual_lines}".format(
                  outdated_docs_headers=", ".join(outdated_docs),
                  py_file=os.path.basename(os.path.realpath(__file__)),
                  filename=os.path.basename(filepath),
                  image_only_lines="\n".join(
                      image_only_lines_not_in_text
                  ),
                  dual_lines="\n".join(dual_lines_not_in_text),
              )
          )
  
      if image_only_transforms_links not in text:
          raise ValueError("Image only transforms links are outdated.")
      if dual_transforms_table not in text:
          raise ValueError("Dual transforms table are outdated.")
  
file_path: albumentations/tools/make_transforms_docs.py
imports: import inspect
  import os
  import sys
  from enum import Enum
  import argparse
  import albumentations
label_desc: Use image node_id 7 for calling a global function with example usage: check_docs(filepath, image_only_transforms_links, dual_transforms_table) without return types