def METHOD_NAME(package: ModuleType) -> Iterator[ModelExample]:
    """Walks recursively all sub-modules and collects BaseModel.Config examples"""
    assert inspect.ismodule(package)
    yield from itertools.chain(
        *(
            iter_model_examples_in_module(importlib.import_module(submodule.name))
            for submodule in pkgutil.walk_packages(
                package.__path__,
                package.__name__ + ".",
            )
        )
    )