code: def test_compile_all_catalogs(app, status, warning):
      app.builder.compile_all_catalogs()
  
      locale_dir = app.srcdir / "locale"
      catalog_dir = locale_dir / app.config.language / "LC_MESSAGES"
      expect = {x.with_suffix(".mo") for x in catalog_dir.rglob("*.po")}
      actual = set(catalog_dir.rglob("*.mo"))
      assert actual  # not empty
      assert actual == expect
  
imports: import shutil
  from pathlib import Path
  import pytest
label_desc: Use image node_id 2 for calling a global function with example usage: test_compile_all_catalogs(app, status, warning) without return types