code: def get_model_name_and_version(client, models_uri):
      (
          model_name,
          model_version,
          model_stage,
          model_alias,
      ) = _parse_model_uri(models_uri)
      if model_version is not None:
          return model_name, model_version
      if model_alias is not None:
          return (
              model_name,
              client.get_model_version_by_alias(
                  model_name, model_alias
              ).version,
          )
      return model_name, str(
          _get_latest_model_version(client, model_name, model_stage)
      )
  
file_path: mlflow/mlflow/store/artifact/utils/models.py
imports: import urllib.parse
  from typing import NamedTuple, Optional
  import mlflow.tracking
  from mlflow.exceptions import MlflowException
  from mlflow.utils.uri import get_databricks_profile_uri_from_artifact_uri, is_databricks_uri
label_desc: Use image node_id 5 for calling a global function with example usage: get_model_name_and_version(client, models_uri) and returns: model_name,  str, model_name,  model_version, model_name,  client