code: def validate_wheeled_dependencies(wheeled_model_path):
      # Check if conda.yaml and requirements.txt are consistent
      pip_requirements_path = os.path.join(
          wheeled_model_path, _REQUIREMENTS_FILE_NAME
      )
      pip_requirements_list = _get_pip_requirements_list(
          pip_requirements_path
      )
      conda_pip_requirements_list = (
          get_pip_requirements_from_conda_file(
              os.path.join(wheeled_model_path, _CONDA_ENV_FILE_NAME)
          )
      )
  
      pip_requirements_list.sort()
      conda_pip_requirements_list.sort()
      assert pip_requirements_list == conda_pip_requirements_list
  
      # Check if requirements.txt and wheels directory are consistent
      wheels_dir = os.path.join(wheeled_model_path, _WHEELS_FOLDER_NAME)
      wheels_list = []
      for wheel_file in os.listdir(wheels_dir):
          if wheel_file.endswith(".whl"):
              relative_wheel_path = os.path.join(
                  _WHEELS_FOLDER_NAME, wheel_file
              )
              wheels_list.append(relative_wheel_path)
  
      wheels_list.sort()
      assert wheels_list == pip_requirements_list
  
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 8 for calling a global function with example usage: validate_wheeled_dependencies(wheeled_model_path) without return types