code: def test_model_log_persists_requirements_in_mlflow_model_directory(
      spacy_model_with_data, spacy_custom_env
  ):
      artifact_path = "model"
      with mlflow.start_run():
          mlflow.spacy.log_model(
              spacy_model=spacy_model_with_data.model,
              artifact_path=artifact_path,
              conda_env=spacy_custom_env,
          )
          model_path = _download_artifact_from_uri(
              f"runs:/{mlflow.active_run().info.run_id}/{artifact_path}"
          )
  
      saved_pip_req_path = os.path.join(model_path, "requirements.txt")
      _compare_conda_env_requirements(
          spacy_custom_env, saved_pip_req_path
      )
  
imports: import json
  import os
  import random
  from collections import namedtuple
  from pathlib import Path
  from unittest import mock
  import pandas
  import pytest
  import spacy
  import yaml
  from packaging.version import Version
  from sklearn.datasets import fetch_20newsgroups
  from spacy.util import compounding, minibatch
  import mlflow.pyfunc.scoring_server
  import mlflow.spacy
  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.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, allow_infer_pip_requirements_fallback_if, pyfunc_serve_and_score_model
label_desc: Use image node_id 14 for calling a global function with example usage: test_model_log_persists_requirements_in_mlflow_model_directory(spacy_model_with_data, spacy_custom_env) without return types