code: def test_pmdarima_signature_and_example_for_confidence_interval_mode(
      auto_arima_model, model_path, use_signature, use_example
  ):
      model_path_primary = model_path.joinpath("primary")
      model_path_secondary = model_path.joinpath("secondary")
      mlflow.pmdarima.save_model(
          pmdarima_model=auto_arima_model, path=model_path_primary
      )
      loaded_pyfunc = mlflow.pyfunc.load_model(
          model_uri=model_path_primary
      )
      predict_conf = pd.DataFrame(
          [{"n_periods": 10, "return_conf_int": True, "alpha": 0.2}]
      )
      forecast = loaded_pyfunc.predict(predict_conf)
      signature_ = infer_signature(predict_conf, forecast)
      signature = signature_ if use_signature else None
      example = predict_conf.copy(deep=False) if use_example else None
      mlflow.pmdarima.save_model(
          auto_arima_model,
          path=model_path_secondary,
          signature=signature,
          input_example=example,
      )
      mlflow_model = Model.load(model_path_secondary)
      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:
          r_example = _read_example(
              mlflow_model, model_path_secondary
          ).copy(deep=False)
          np.testing.assert_array_equal(r_example, example)
  
imports: import json
  import os
  from pathlib import Path
  from unittest import mock
  import numpy
  import pandas
  import pmdarima
  import pytest
  import yaml
  import mlflow.pmdarima
  import mlflow.pyfunc.scoring_server
  from mlflow import pyfunc
  from mlflow.exceptions import MlflowException
  from mlflow.models import Model, ModelSignature, infer_signature
  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.types import DataType
  from mlflow.types.schema import ColSpec, Schema
  from mlflow.utils.environment import _mlflow_conda_env
  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.prophet.test_prophet_model_export import DataGeneration
label_desc: Use image node_id 10 for calling a global function with example usage: test_pmdarima_signature_and_example_for_confidence_interval_mode(auto_arima_model, model_path, use_signature, use_example) without return types