class_docstr: Determined gives access to Determined API objects.
  
  Arguments:
      master (string, optional): The URL of the Determined master. If
          this argument is not specified, the environment variables ``DET_MASTER`` and
          ``DET_MASTER_ADDR`` will be checked for the master URL in that order.
      user (string, optional): The Determined username used for
          authentication. (default: ``determined``)
docstr: Get the :class:`~determined.experimental.Model` from the model registry
  with the provided id. If no model with that id is found in the registry,
  an exception is raised.
  
  .. warning::
     Determined.get_model_by_id() has been deprecated and will be removed
     in a future version.
     Please call Determined.get_model() with either a string-type name or
     an integer-type model ID.
docstr_tok: ["Get","the",":","class",":","`","~determined.experimental.Model","`","from","the","model","registry","with","the","provided","id",".","If","no","model","with","that","id","is","found","in","the","registry",",","an","exception","is","raised",".","..","warning",":",":","Determined.get_model_by_id","(",")","has","been","deprecated","and","will","be","removed","in","a","future","version",".","Please","call","Determined.get_model","(",")","with","either","a","string-type","name","or","an","integer-type","model","ID","."]
code: def get_model_by_id(self, model_id: int) -> model.Model:
      """
      Get the :class:`~determined.experimental.Model` from the model registry
      with the provided id. If no model with that id is found in the registry,
      an exception is raised.
  
      .. warning::
         Determined.get_model_by_id() has been deprecated and will be removed
         in a future version.
         Please call Determined.get_model() with either a string-type name or
         an integer-type model ID.
      """
      warnings.warn(
          "Determined.get_model_by_id() has been deprecated and will be removed "
          "in a future version.\n"
          "Please call Determined.get_model() with either a string-type name or "
          "an integer-type model ID.",
          FutureWarning,
          stacklevel=2,
      )
      return self.get_model(model_id)
  
imports: import itertools
  import logging
  import pathlib
  import warnings
  from typing import Any, Dict, Iterable, List, Optional, Sequence, Union
  import determined
  from determined.common import api, context, util
  from determined.common.api import authentication, bindings, certs, errors
  from determined.common.experimental import checkpoint, experiment, metrics, model, oauth2_scim_client, trial, user, workspace
  from determined.common.experimental._util import OrderBy
label_desc: Use image node_id 21 for calling the Determined obj's underlying member method code with example usage: obj.get_model_by_id(model_id) and returns: self