code: def pytest_generate_tests(metafunc):
      configs = [
          str(x)
          for x in Path("config").rglob("**/*.yaml")
          if not exclude_yaml_from_test(x)
      ]
      configs += [
          str(x)
          for x in Path("examples").rglob("**/*.yaml")
          if not exclude_yaml_from_test(x)
      ]
      metafunc.parametrize("config_file", configs)
  
imports: import re
  import sys
  from pathlib import Path
  from tests.configs import get_config
  from tests.test_model import exclude_yaml_from_test
label_desc: Use image node_id 2 for calling a global function with example usage: pytest_generate_tests(metafunc) without return types