def METHOD_NAME(
    mock_pipeline_factory,
    pretrained_model: Optional[str],
    parameters_uri: Optional[str],
    expected: Optional[str],
):
    mock_pipeline_factory.return_value = MagicMock()
    hf_settings = HuggingFaceSettings(pretrained_model=pretrained_model)
    model_params = ModelParameters(uri=parameters_uri)
    model_settings = ModelSettings(
        name="foo",
        implementation=HuggingFaceRuntime,
        parameters=model_params,
    )
    _ = load_pipeline_from_settings(hf_settings, model_settings)
    mock_pipeline_factory.return_value.assert_called_once()
    pipeline_call_args = mock_pipeline_factory.return_value.call_args
    assert pipeline_call_args.kwargs["model"] == expected