code: def check_guide_links_in_operator_descriptions() -> (
      list[DocBuildError]
  ):
      """Check if there are links to guides in operator's descriptions."""
      build_errors = []
  
      build_errors.extend(
          _check_missing_guide_references(
              operator_names=find_existing_guide_operator_names(
                  f"{DOCS_DIR}/apache-airflow/howto/operator/**/*.rst"
              ),
              python_module_paths=itertools.chain(
                  glob(f"{ROOT_PACKAGE_DIR}/operators/*.py"),
                  glob(f"{ROOT_PACKAGE_DIR}/sensors/*.py"),
              ),
          )
      )
  
      for provider in ALL_PROVIDER_YAMLS:
          operator_names = {
              *find_existing_guide_operator_names(
                  f"{DOCS_DIR}/{provider['package-name']}/operators/**/*.rst"
              ),
              *find_existing_guide_operator_names(
                  f"{DOCS_DIR}/{provider['package-name']}/operators.rst"
              ),
          }
  
          # Extract all potential python modules that can contain operators
          python_module_paths = itertools.chain(
              glob(
                  f"{provider['package-dir']}/**/operators/*.py",
                  recursive=True,
              ),
              glob(
                  f"{provider['package-dir']}/**/sensors/*.py",
                  recursive=True,
              ),
              glob(
                  f"{provider['package-dir']}/**/transfers/*.py",
                  recursive=True,
              ),
          )
  
          build_errors.extend(
              _check_missing_guide_references(
                  operator_names=operator_names,
                  python_module_paths=python_module_paths,
              )
          )
  
      return build_errors
  
imports: from __future__ import annotations
  import ast
  import itertools
  import os
  import re
  from glob import glob
  from typing import Iterable
  from docs.exts.docs_build.docs_builder import ALL_PROVIDER_YAMLS
  from docs.exts.docs_build.errors import DocBuildError
label_desc: Use image node_id 4 for calling a global function with example usage: check_guide_links_in_operator_descriptions() and returns: build_errors