def get_service(model_name: str, **config: Unpack[ServiceConfig]) -> Service[t.Any]:
    """
    Get a BentoML service from a MLflow model.

    Args:
        model_name: The name of the model to load.
        **config: Additional configuration for the service.

    Returns:
        A BentoML service instance that can be used to serve the MLflow model.

    Example:

    .. code-block:: python

        import bentoml

        service = bentoml.mlflow.get_service("my_mlflow_model")
    """

    @bentoml.service(**config)
    class MLflowService:
        bento_model = bentoml.models.get(model_name)

        def __init__(self):
            self.model = load_model(self.bento_model)

        @bentoml.api
        def predict(self, input_data: np.ndarray) -> np.ndarray:
            rv = self.model.predict(input_data)
            return np.asarray(rv)

    return MLflowService
Get a BentoML service from a MLflow model.

Args:
model_name: The name of the model to load.
**config: Additional configuration for the service.

Returns:
A BentoML service instance that can be used to serve the MLflow model.

Example:

.. code-block:: python

import bentoml

service = bentoml.mlflow.get_service("my_mlflow_model")
src/_bentoml_impl/frameworks/mlflow.py