code: def test_get_model_name_and_version_with_stage():
      with mock.patch.object(
          MlflowClient,
          "get_latest_versions",
          return_value=[
              ModelVersion(
                  name="mv1",
                  version="10",
                  creation_timestamp=123,
                  current_stage="Production",
              ),
              ModelVersion(
                  name="mv2",
                  version="15",
                  creation_timestamp=124,
                  current_stage="Production",
              ),
          ],
      ) as mlflow_client_mock:
          assert get_model_name_and_version(
              MlflowClient(), "models:/AdsModel1/Production"
          ) == (
              "AdsModel1",
              "15",
          )
          mlflow_client_mock.assert_called_once_with(
              "AdsModel1", ["Production"]
          )
  
file_path: mlflow/tests/store/artifact/utils/test_model_utils.py
imports: from unittest import mock
  import pytest
  from mlflow import MlflowClient
  from mlflow.entities.model_registry import ModelVersion
  from mlflow.exceptions import MlflowException
  from mlflow.store.artifact.utils.models import _parse_model_uri, get_model_name_and_version
label_desc: Use image node_id 7 for calling a global function with example usage: test_get_model_name_and_version_with_stage() without return types