code: def test_signature_and_examples_are_saved_correctly():
      model, _, X = ols_model()
      signature_ = ols_model_signature()
      example_ = X[0:3, :]
  
      for signature in (None, signature_):
          for example in (None, example_):
              with TempDir() as tmp:
                  path = tmp.path("model")
                  mlflow.statsmodels.save_model(
                      model,
                      path=path,
                      signature=signature,
                      input_example=example,
                  )
                  mlflow_model = Model.load(path)
                  if signature is None and example is None:
                      assert mlflow_model.signature is None
                  else:
                      assert mlflow_model.signature == signature_
                  if example is None:
                      assert (
                          mlflow_model.saved_input_example_info is None
                      )
                  else:
                      np.testing.assert_array_equal(
                          _read_example(mlflow_model, path), example
                      )
  
imports: import json
  import os
  from pathlib import Path
  from unittest import mock
  import numpy
  import pandas
  import pytest
  import yaml
  import mlflow.pyfunc.scoring_server
  import mlflow.statsmodels
  import mlflow.utils
  from mlflow import pyfunc
  from mlflow.models import Model
  from mlflow.models.utils import _read_example
  from mlflow.store.artifact.s3_artifact_repo import S3ArtifactRepository
  from mlflow.tracking.artifact_utils import _download_artifact_from_uri
  from mlflow.utils.environment import _mlflow_conda_env
  from mlflow.utils.file_utils import TempDir
  from mlflow.utils.model_utils import _get_flavor_configuration
  from tests.helper_functions import _assert_pip_requirements, _compare_conda_env_requirements, _compare_logged_code_paths, _is_available_on_pypi, _mlflow_major_version_string, assert_register_model_called_with_local_model_path, pyfunc_serve_and_score_model
  from tests.statsmodels.model_fixtures import arma_model, gee_model, glm_model, gls_model, glsar_model, ols_model, ols_model_signature, recursivels_model, rolling_ols_model, rolling_wls_model, wls_model
label_desc: Use image node_id 9 for calling a global function with example usage: test_signature_and_examples_are_saved_correctly() without return types