class_docstr: Client for a remote model registry server accessed via REST API calls
  
  :param get_host_creds: Method to be invoked prior to every REST request to get the
    :py:class:`mlflow.rest_utils.MlflowHostCreds` for the request. Note that this
    is a function so that we can obtain fresh credentials in the case of expiry.
class_docstr_tok: ["Client","for","a","remote","model","registry","server","accessed","via","REST","API","calls",":","param","get_host_creds",":","Method","to","be","invoked","prior","to","every","REST","request","to","get","the",":","py",":","class",":","`","mlflow.rest_utils.MlflowHostCreds","`","for","the","request",".","Note","that","this","is","a","function","so","that","we","can","obtain","fresh","credentials","in","the","case","of","expiry","."]
docstr: Latest version models for each requested stage. If no ``stages`` argument is provided,
  returns the latest version for each stage.
  
  :param name: Registered model name.
  :param stages: List of desired stages. If input list is None, return latest versions for
                 each stage.
  :return: List of :py:class:`mlflow.entities.model_registry.ModelVersion` objects.
docstr_tok: ["Latest","version","models","for","each","requested","stage",".","If","no","``","stages","``","argument","is","provided",",","returns","the","latest","version","for","each","stage",".",":","param","name",":","Registered","model","name",".",":","param","stages",":","List","of","desired","stages",".","If","input","list","is","None",",","return","latest","versions","for","each","stage",".",":","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 requested stage. If no ``stages`` argument is provided,
      returns the latest version for each stage.
  
      :param name: Registered model name.
      :param stages: List of desired stages. If input list is None, return latest versions for
                     each stage.
      :return: List of :py:class:`mlflow.entities.model_registry.ModelVersion` objects.
      """
      req_body = message_to_json(
          GetLatestVersions(name=name, stages=stages)
      )
      response_proto = self._call_endpoint(
          GetLatestVersions, req_body, call_all_endpoints=True
      )
      return [
          ModelVersion.from_proto(model_version)
          for model_version in response_proto.model_versions
      ]
  
imports: import logging
  from mlflow.entities.model_registry import ModelVersion, RegisteredModel
  from mlflow.protos.model_registry_pb2 import CreateModelVersion, CreateRegisteredModel, DeleteModelVersion, DeleteModelVersionTag, DeleteRegisteredModel, DeleteRegisteredModelAlias, DeleteRegisteredModelTag, GetLatestVersions, GetModelVersion, GetModelVersionByAlias, GetModelVersionDownloadUri, GetRegisteredModel, ModelRegistryService, RenameRegisteredModel, SearchModelVersions, SearchRegisteredModels, SetModelVersionTag, SetRegisteredModelAlias, SetRegisteredModelTag, TransitionModelVersionStage, UpdateModelVersion, UpdateRegisteredModel
  from mlflow.store.entities.paged_list import PagedList
  from mlflow.store.model_registry.base_rest_store import BaseRestStore
  from mlflow.utils.proto_json_utils import message_to_json
  from mlflow.utils.rest_utils import _REST_API_PATH_PREFIX, extract_all_api_info_for_service, extract_api_info_for_service
label_desc: Use image node_id 10 for calling the RestStore obj's underlying member method code with example usage: obj.get_latest_versions(name, stages) and returns: unknown