class_docstr: Abstract class that defines API interfaces for storing Model Registry metadata.
class_docstr_tok: ["Abstract","class","that","defines","API","interfaces","for","storing","Model","Registry","metadata","."]
docstr: Update model version stage.
  
  :param name: Registered model name.
  :param version: Registered model version.
  :param stage: New desired stage for this model version.
  :param archive_existing_versions: If this flag is set to ``True``, all existing model
      versions in the stage will be automatically moved to the "archived" stage. Only valid
      when ``stage`` is ``"staging"`` or ``"production"`` otherwise an error will be raised.
  
  :return: A single :py:class:`mlflow.entities.model_registry.ModelVersion` object.
docstr_tok: ["Update","model","version","stage",".",":","param","name",":","Registered","model","name",".",":","param","version",":","Registered","model","version",".",":","param","stage",":","New","desired","stage","for","this","model","version",".",":","param","archive_existing_versions",":","If","this","flag","is","set","to","``","True","``",",","all","existing","model","versions","in","the","stage","will","be","automatically","moved","to","the","``","archived","''","stage",".","Only","valid","when","``","stage","``","is","``","``","staging","''","``","or","``","``","production","''","``","otherwise","an","error","will","be","raised",".",":","return",":","A","single",":","py",":","class",":","`","mlflow.entities.model_registry.ModelVersion","`","object","."]
code: def transition_model_version_stage(
      self, name, version, stage, archive_existing_versions
  ):
      """
      Update model version stage.
  
      :param name: Registered model name.
      :param version: Registered model version.
      :param stage: New desired stage for this model version.
      :param archive_existing_versions: If this flag is set to ``True``, all existing model
          versions in the stage will be automatically moved to the "archived" stage. Only valid
          when ``stage`` is ``"staging"`` or ``"production"`` otherwise an error will be raised.
  
      :return: A single :py:class:`mlflow.entities.model_registry.ModelVersion` object.
      """
      pass
  
imports: import logging
  from abc import ABCMeta, abstractmethod
  from time import sleep, time
  from mlflow.entities.model_registry import ModelVersionTag
  from mlflow.entities.model_registry.model_version_status import ModelVersionStatus
  from mlflow.exceptions import MlflowException
  from mlflow.protos.databricks_pb2 import RESOURCE_ALREADY_EXISTS, ErrorCode
  from mlflow.utils.annotations import developer_stable
label_desc: Use image node_id 13 for calling the AbstractStore obj's underlying member method code with example usage: obj.transition_model_version_stage(name, version, stage, archive_existing_versions) without return types