code: def test_statsmodels_autolog_loads_model_from_artifact():
      mlflow.statsmodels.autolog()
      fixtures = [
          ols_model,
          arma_model,
          glsar_model,
          gee_model,
          glm_model,
          gls_model,
          recursivels_model,
          rolling_ols_model,
          rolling_wls_model,
          wls_model,
      ]
  
      for algorithm in fixtures:
          model_with_results = algorithm()
          run = get_latest_run()
          run_id = run.info.run_id
          loaded_model = mlflow.statsmodels.load_model(
              f"runs:/{run_id}/model"
          )
  
          if hasattr(model_with_results.model, "predict"):
              if isinstance(model_with_results.alg, TimeSeriesModel):
                  start_date, end_date = _get_dates_from_df(
                      model_with_results.inference_dataframe
                  )
                  model_predictions = model_with_results.model.predict(
                      start_date, end_date
                  )
                  loaded_model_predictions = loaded_model.predict(
                      start_date, end_date
                  )
              else:
                  model_predictions = model_with_results.model.predict(
                      model_with_results.inference_dataframe
                  )
                  loaded_model_predictions = loaded_model.predict(
                      model_with_results.inference_dataframe
                  )
  
              np.testing.assert_array_almost_equal(
                  model_predictions, loaded_model_predictions
              )
  
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 13 for calling a global function with example usage: test_statsmodels_autolog_loads_model_from_artifact() without return types