code: def test_get_model_dependencies_with_model_version_uri():
      with mlflow.start_run():
          mlflow.sklearn.log_model(
              LinearRegression(),
              "model",
              registered_model_name="linear",
          )
  
      deps = get_model_dependencies("models:/linear/1", format="pip")
      assert (
          f"scikit-learn=={sklearn.__version__}"
          in Path(deps).read_text()
      )
  
file_path: mlflow/tests/pyfunc/test_dependencies_functions.py
imports: from pathlib import Path
  from unittest import mock
  import cloudpickle
  import pytest
  import sklearn
  from sklearn.linear_model import LinearRegression
  import mlflow.utils.requirements_utils
  from mlflow.exceptions import MlflowException
  from mlflow.pyfunc import _warn_dependency_requirement_mismatches, get_model_dependencies
  from mlflow.utils import PYTHON_VERSION
  from tests.helper_functions import AnyStringWith
label_desc: Use image node_id 4 for calling a global function with example usage: test_get_model_dependencies_with_model_version_uri() without return types