code: def check_enforce_code_block() -> list[DocBuildError]:
      """Checks all code:: blocks."""
      all_docs_files = glob(f"{DOCS_DIR}/**/*.rst", recursive=True)
      build_errors = []
      for doc_file in all_docs_files:
          build_error = assert_file_not_contains(
              file_path=doc_file,
              pattern=r"^.. code::",
              message=(
                  "We recommend using the code-block directive instead of the code directive. "
                  "The code-block directive is more feature-full."
              ),
          )
          if build_error:
              build_errors.append(build_error)
      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 12 for calling a global function with example usage: check_enforce_code_block() and returns: build_errors