code: def test_model_save_persists_specified_conda_env_in_mlflow_model_directory(
      fastai_model, model_path, fastai_custom_env
  ):
      mlflow.fastai.save_model(
          fastai_learner=fastai_model.model,
          path=model_path,
          conda_env=fastai_custom_env,
      )
  
      pyfunc_conf = _get_flavor_configuration(
          model_path=model_path, flavor_name=pyfunc.FLAVOR_NAME
      )
      saved_conda_env_path = os.path.join(
          model_path, pyfunc_conf[pyfunc.ENV]["conda"]
      )
      assert os.path.exists(saved_conda_env_path)
      assert saved_conda_env_path != fastai_custom_env
  
      with open(fastai_custom_env) as f:
          fastai_custom_env_parsed = yaml.safe_load(f)
      with open(saved_conda_env_path) as f:
          saved_conda_env_parsed = yaml.safe_load(f)
      assert saved_conda_env_parsed == fastai_custom_env_parsed
  
imports: import json
  import os
  from collections import namedtuple
  from pathlib import Path
  from unittest import mock
  import numpy
  import pandas
  import pytest
  import yaml
  from fastai.metrics import accuracy
  from fastai.tabular.all import TabularDataLoaders, tabular_learner
  from sklearn import datasets
  import mlflow.fastai
  import mlflow.pyfunc.scoring_server
  import mlflow.utils
  from mlflow import pyfunc
  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.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, _mlflow_major_version_string, assert_register_model_called_with_local_model_path, pyfunc_serve_and_score_model
label_desc: Use image node_id 10 for calling a global function with example usage: test_model_save_persists_specified_conda_env_in_mlflow_model_directory(fastai_model, model_path, fastai_custom_env) without return types