def import_service(
    svc_import_path: str, working_dir: str | None = None, reload: bool = False
) -> Service[t.Any]:
    """An alias for `bentoml._internal.services.loader.import_service` that ensures
    to return a new-style service object.
    """
    from bentoml._internal.service.loader import import_service as import_service_impl

    return t.cast(
        "Service[t.Any]",
        import_service_impl(svc_import_path, working_dir=working_dir, reload=reload),
    )
An alias for `bentoml._internal.services.loader.import_service` that ensures
to return a new-style service object.
src/_bentoml_impl/loader.py