code: def test_statsmodels_autolog_respects_log_models_flag(log_models):
      mlflow.statsmodels.autolog(log_models=log_models)
      ols_model()
      run = get_latest_run()
      client = MlflowClient()
      artifact_paths = [
          artifact.path
          for artifact in client.list_artifacts(run.info.run_id)
      ]
      assert ("model" in artifact_paths) == log_models
  
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 12 for calling a global function with example usage: test_statsmodels_autolog_respects_log_models_flag(log_models) without return types