class_docstr: A legacy class representing an Trial object.
  
  This class was renamed to :class:`~determined.experimental.Trial` and will be removed
  in a future release.
class_docstr_tok: ["A","legacy","class","representing","an","Trial","object",".","This","class","was","renamed","to",":","class",":","`","~determined.experimental.Trial","`","and","will","be","removed","in","a","future","release","."]
code: def __init__(
      self,
      trial_id: int,
      session: api.Session,
  ):
      warnings.warn(
          "'TrialReference' was renamed to 'Trial' and will be removed in a future "
          "release. Please consider replacing any code references to 'TrialReference' "
          "with 'Trial'.",
          FutureWarning,
          stacklevel=2,
      )
      Trial.__init__(self, trial_id=trial_id, session=session)
  
imports: import datetime
  import enum
  import inspect
  import warnings
  from typing import Any, Dict, Iterable, List, Optional, Union
  from determined.common import api, util
  from determined.common.api import bindings, logs
  from determined.common.experimental import checkpoint, metrics
  from determined.common.experimental._util import OrderBy
label_desc: Use image node_id 1 to create a new TrialReference object from inherited base classes: Trial with example: obj = TrialReference(trial_id, session)