def get_current_service() -> t.Any:
    """Return the current active service instance."""
    if _current_service is None:
        raise BentoMLException("service isn't instantiated yet")
    return _current_service
Return the current active service instance.
src/_bentoml_sdk/service/__init__.py