def ensure_populated(cls) -> None:
        """Ensure the registry is populated with all necessary components."""
        from .registrations import REGISTRY_POPULATED, populate_registry

        if not REGISTRY_POPULATED:
            populate_registry()
Ensure the registry is populated with all necessary components.
spacy/util.py