def METHOD_NAME():
    mlflow.statsmodels.autolog()
    with mock.patch(
        "mlflow.statsmodels._model_size_threshold_for_emitting_warning", float("inf")
    ), mock.patch("mlflow.statsmodels._logger.warning") as mock_warning:
        ols_model()
        assert all(
            not call_args[0][0].startswith("The fitted model is larger than")
            for call_args in mock_warning.call_args_list
        )
    with mock.patch("mlflow.statsmodels._model_size_threshold_for_emitting_warning", 1), mock.patch(
        "mlflow.statsmodels._logger.warning"
    ) as mock_warning:
        ols_model()
        assert any(
            call_args[0][0].startswith("The fitted model is larger than")
            for call_args in mock_warning.call_args_list
        )