class_docstr: Client of an MLflow Model Registry Server that creates and manages registered
  models and model versions.
docstr: Latest version models for each requests stage. If no ``stages`` provided, returns the
  latest version for each stage.
  
  :param name: Name of the registered model from which to get the latest versions.
  :param stages: List of desired stages. If input list is None, return latest versions for
                 for 'Staging' and 'Production' stages.
  :return: List of :py:class:`mlflow.entities.model_registry.ModelVersion` objects.
docstr_tok: ["Latest","version","models","for","each","requests","stage",".","If","no","``","stages","``","provided",",","returns","the","latest","version","for","each","stage",".",":","param","name",":","Name","of","the","registered","model","from","which","to","get","the","latest","versions",".",":","param","stages",":","List","of","desired","stages",".","If","input","list","is","None",",","return","latest","versions","for","for","'Staging","'","and","'Production","'","stages",".",":","return",":","List","of",":","py",":","class",":","`","mlflow.entities.model_registry.ModelVersion","`","objects","."]
code: def get_latest_versions(self, name, stages=None):
      """
      Latest version models for each requests stage. If no ``stages`` provided, returns the
      latest version for each stage.
  
      :param name: Name of the registered model from which to get the latest versions.
      :param stages: List of desired stages. If input list is None, return latest versions for
                     for 'Staging' and 'Production' stages.
      :return: List of :py:class:`mlflow.entities.model_registry.ModelVersion` objects.
      """
      return self.store.get_latest_versions(name, stages)
  
imports: import logging
  from mlflow.entities.model_registry import ModelVersionTag, RegisteredModelTag
  from mlflow.exceptions import MlflowException
  from mlflow.store.model_registry import SEARCH_MODEL_VERSION_MAX_RESULTS_DEFAULT, SEARCH_REGISTERED_MODEL_MAX_RESULTS_DEFAULT
  from mlflow.tracking._model_registry import DEFAULT_AWAIT_MAX_SLEEP_SECONDS, utils
  from mlflow.utils.arguments_utils import _get_arg_names
label_desc: Use image node_id 9 for calling the ModelRegistryClient obj's underlying member method code with example usage: obj.get_latest_versions(name, stages) and returns: self