code: def test_signature_and_examples_saved_correctly(
      auto_arima_model,
      data_airline,
      model_path,
      use_signature,
      use_example,
  ):
      """Test saving of mlflow signature and example for native sktime predict method."""
      # Note: Signature inference fails on native model predict_interval/predict_quantiles
      prediction = auto_arima_model.predict(fh=FH)
      signature = (
          infer_signature(data_airline, prediction)
          if use_signature
          else None
      )
      example = (
          pd.DataFrame(data_airline[0:5].copy(deep=False))
          if use_example
          else None
      )
      flavor.save_model(
          auto_arima_model,
          path=model_path,
          signature=signature,
          input_example=example,
      )
      mlflow_model = Model.load(model_path)
      assert signature == mlflow_model.signature
      if example is None:
          assert mlflow_model.saved_input_example_info is None
      else:
          r_example = _read_example(mlflow_model, model_path).copy(
              deep=False
          )
          np.testing.assert_array_equal(r_example, example)
  
imports: import os
  from pathlib import Path
  from unittest import mock
  import boto3
  import flavor
  import moto
  import numpy
  import pandas
  import pytest
  from botocore.config import Config
  from sktime.datasets import load_airline, load_longley
  from sktime.datatypes import convert
  from sktime.forecasting.arima import AutoARIMA
  from sktime.forecasting.model_selection import temporal_train_test_split
  from sktime.forecasting.naive import NaiveForecaster
  import mlflow
  from mlflow import pyfunc
  from mlflow.exceptions import MlflowException
  from mlflow.models import Model, infer_signature
  from mlflow.models.utils import _read_example
  from mlflow.store.artifact.s3_artifact_repo import S3ArtifactRepository
  from mlflow.tracking._model_registry import DEFAULT_AWAIT_MAX_SLEEP_SECONDS
  from mlflow.tracking.artifact_utils import _download_artifact_from_uri
  from mlflow.utils.environment import _mlflow_conda_env
label_desc: Use image node_id 11 for calling a global function with example usage: test_signature_and_examples_saved_correctly(auto_arima_model, data_airline, model_path, use_signature, use_example) without return types