code: def test_logging_and_saving_wheeled_model_throws(
      tmp_path, sklearn_knn_model
  ):
      model_name = f"wheels-test-{random_int()}"
      model_uri = f"models:/{model_name}/1"
      wheeled_model_uri = f"models:/{model_name}/2"
      artifact_path = "model"
  
      # Log a model
      with mlflow.start_run():
          mlflow.sklearn.log_model(
              sk_model=sklearn_knn_model.model,
              artifact_path=artifact_path,
              registered_model_name=model_name,
          )
  
      # Re-log with wheels
      with mlflow.start_run():
          WheeledModel.log_model(
              model_uri=model_uri,
          )
  
      match = "Model libraries are already added"
  
      # Log wheeled model
      with pytest.raises(MlflowException, match=re.escape(match)):
          with mlflow.start_run():
              WheeledModel.log_model(
                  model_uri=wheeled_model_uri,
              )
  
      # Saved a wheeled model
      saved_model_path = os.path.join(tmp_path, "test")
      with pytest.raises(MlflowException, match=re.escape(match)):
          with mlflow.start_run():
              WheeledModel(wheeled_model_uri).save_model(
                  saved_model_path
              )
  
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 11 for calling a global function with example usage: test_logging_and_saving_wheeled_model_throws(tmp_path, sklearn_knn_model) without return types