class_docstr: Class representing a model in the model registry.
  
  A Model object is usually obtained from :func:`determined.experimental.client.create_model`
  or :func:`determined.experimental.client.get_model`. It contains methods for model
  versions and metadata.
class_docstr_tok: ["Class","representing","a","model","in","the","model","registry",".","A","Model","object","is","usually","obtained","from",":","func",":","`","determined.experimental.client.create_model","`","or",":","func",":","`","determined.experimental.client.get_model","`",".","It","contains","methods","for","model","versions","and","metadata","."]
docstr: Get a list of ModelVersions with checkpoints of this model.
  
  The model versions are sorted by model version ID and are returned in descending
  order by default.
  
  Arguments:
      order_by (enum): A member of the :class:`OrderBy` enum.
docstr_tok: ["Get","a","list","of","ModelVersions","with","checkpoints","of","this","model",".","The","model","versions","are","sorted","by","model","version","ID","and","are","returned","in","descending","order","by","default",".","Arguments",":","order_by","(","enum",")",":","A","member","of","the",":","class",":","`","OrderBy","`","enum","."]
code: def list_versions(
      self, order_by: OrderBy = OrderBy.DESC
  ) -> List[ModelVersion]:
      """
      Get a list of ModelVersions with checkpoints of this model.
  
      The model versions are sorted by model version ID and are returned in descending
      order by default.
  
      Arguments:
          order_by (enum): A member of the :class:`OrderBy` enum.
      """
  
      def get_with_offset(
          offset: int,
      ) -> bindings.v1GetModelVersionsResponse:
          return bindings.get_GetModelVersions(
              self._session,
              limit=None,
              modelName=self.name,
              offset=offset,
              orderBy=order_by._to_bindings(),
          )
  
      bindings_models: Iterable[
          bindings.v1ModelVersion
      ] = itertools.chain.from_iterable(
          r.modelVersions for r in api.read_paginated(get_with_offset)
      )
      return [
          ModelVersion._from_bindings(m, self._session)
          for m in bindings_models
      ]
  
imports: import datetime
  import enum
  import itertools
  import json
  import warnings
  from typing import Any, Dict, Iterable, List, Optional
  from determined.common import api, util
  from determined.common.api import bindings
  from determined.common.experimental import checkpoint, metrics
  from determined.common.experimental._util import OrderBy
label_desc: Use image node_id 4 for calling the Model obj's underlying member method code with example usage: obj.list_versions(order_by) and returns: unknown, bindings