code: def test_statsmodels_autolog_logs_summary_artifact():
      mlflow.statsmodels.autolog()
      with mlflow.start_run():
          model = ols_model().model
          summary_path = mlflow.get_artifact_uri(
              "model_summary.txt"
          ).replace("file://", "")
          with open(summary_path) as f:
              saved_summary = f.read()
  
      # don't compare the whole summary text because it includes a "Time" field which may change.
      assert (
          model.summary().as_text().split("\n")[:4]
          == saved_summary.split("\n")[:4]
      )
  
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 7 for calling a global function with example usage: test_statsmodels_autolog_logs_summary_artifact() without return types