code: def test_create_pip_requirement(tmp_path):
      expected_mlflow_version = _mlflow_major_version_string()
      model_name = f"wheels-test-{random_int()}"
      model_uri = f"models:/{model_name}/1"
      conda_env_path = os.path.join(tmp_path, "conda.yaml")
      pip_reqs_path = os.path.join(tmp_path, "requirements.txt")
  
      wm = WheeledModel(model_uri)
  
      expected_pip_deps = [
          expected_mlflow_version,
          "cloudpickle==2.1.0",
          "psutil==5.8.0",
      ]
      _mlflow_conda_env(
          path=conda_env_path,
          additional_pip_deps=expected_pip_deps,
          install_mlflow=False,
      )
      wm._create_pip_requirement(conda_env_path, pip_reqs_path)
      with open(pip_reqs_path) as f:
          pip_reqs = [x.strip() for x in f.readlines()]
      assert expected_pip_deps.sort() == pip_reqs.sort()
  
imports: import json
  import os
  import random
  import re
  from collections import namedtuple
  import numpy
  import pandas
  import pytest
  import sklearn.neighbors
  import yaml
  from sklearn import datasets
  import mlflow
  import mlflow.pyfunc.scoring_server
  from mlflow.exceptions import MlflowException
  from mlflow.models.wheeled_model import _WHEELS_FOLDER_NAME, WheeledModel
  from mlflow.pyfunc.model import MLMODEL_FILE_NAME, Model
  from mlflow.store.artifact.utils.models import _improper_model_uri_msg
  from mlflow.tracking.artifact_utils import _download_artifact_from_uri
  from mlflow.utils.environment import _CONDA_ENV_FILE_NAME, _REQUIREMENTS_FILE_NAME, _is_pip_deps, _mlflow_conda_env
  from tests.helper_functions import _is_available_on_pypi, _mlflow_major_version_string, pyfunc_serve_and_score_model
label_desc: Use image node_id 13 for calling a global function with example usage: test_create_pip_requirement(tmp_path) without return types