code: def test_statsmodels_autolog_emit_warning_when_model_is_large():
      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
          )
  
imports: from unittest import mock
  import numpy
  import pytest
  from statsmodels.tsa.base.tsa_model import TimeSeriesModel
  import mlflow
  import mlflow.statsmodels
  from mlflow import MlflowClient
  from tests.statsmodels.model_fixtures import arma_model, failing_logit_model, gee_model, glm_model, gls_model, glsar_model, ols_model, recursivels_model, rolling_ols_model, rolling_wls_model, wls_model
  from tests.statsmodels.test_statsmodels_model_export import _get_dates_from_df
label_desc: Use image node_id 8 for calling a global function with example usage: test_statsmodels_autolog_emit_warning_when_model_is_large() without return types