code: def test_pmdarima_model_save_persists_specified_conda_env_in_mlflow_model_directory(
      auto_arima_object_model, model_path, pmdarima_custom_env
  ):
      mlflow.pmdarima.save_model(
          pmdarima_model=auto_arima_object_model,
          path=model_path,
          conda_env=str(pmdarima_custom_env),
      )
      pyfunc_conf = _get_flavor_configuration(
          model_path=model_path, flavor_name=pyfunc.FLAVOR_NAME
      )
      saved_conda_env_path = model_path.joinpath(
          pyfunc_conf[pyfunc.ENV]["conda"]
      )
      assert saved_conda_env_path.exists()
      assert not pmdarima_custom_env.samefile(saved_conda_env_path)
  
      pmdarima_custom_env_parsed = yaml.safe_load(
          pmdarima_custom_env.read_bytes()
      )
      saved_conda_env_parsed = yaml.safe_load(
          saved_conda_env_path.read_bytes()
      )
      assert saved_conda_env_parsed == pmdarima_custom_env_parsed
  
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 15 for calling a global function with example usage: test_pmdarima_model_save_persists_specified_conda_env_in_mlflow_model_directory(auto_arima_object_model, model_path, pmdarima_custom_env) without return types