class_docstr: A class representing an Experiment object.
  
  An Experiment object is usually obtained from
  :func:`determined.experimental.client.create_experiment`
  or :func:`determined.experimental.client.get_experiment` and contains helper methods
  that support querying the set of checkpoints associated with an experiment.
  
  Attributes:
      id: ID of experiment object in database.
      session: HTTP request session.
      config: (Mutable, Optional[Dict]) Experiment config for the experiment.
      state: (Mutable, Optional[experimentv1State) State of the experiment.
      archived: (Mutable, bool) True if experiment is archived, else false.
      name: (Mutable, str) Human-friendly name of the experiment.
      progress: (Mutable, float) Completion progress of experiment in range (0, 1.0) where 1.0
          is 100% completion.
      description: (Mutable, string) Description of the experiment.
      notes: (Mutable, str) Notes for the experiment.
      labels: (Mutable, Optional[List]) Labels associated with the experiment.
      project_id: (Mutable, int) The ID of the project associated with the experiment.
      workspace_id: (Mutable, int) The ID of the workspace associated with the experiment.
  
  Note:
      All attributes are cached by default.
  
      Some attributes are mutable and may be changed by methods that update these values,
      either automatically (eg. :meth:`wait()`) or explicitly with :meth:`reload()`.
class_docstr_tok: ["A","class","representing","an","Experiment","object",".","An","Experiment","object","is","usually","obtained","from",":","func",":","`","determined.experimental.client.create_experiment","`","or",":","func",":","`","determined.experimental.client.get_experiment","`","and","contains","helper","methods","that","support","querying","the","set","of","checkpoints","associated","with","an","experiment",".","Attributes",":","id",":","ID","of","experiment","object","in","database",".","session",":","HTTP","request","session",".","config",":","(","Mutable",",","Optional","[","Dict","]",")","Experiment","config","for","the","experiment",".","state",":","(","Mutable",",","Optional","[","experimentv1State",")","State","of","the","experiment",".","archived",":","(","Mutable",",","bool",")","True","if","experiment","is","archived",",","else","false",".","name",":","(","Mutable",",","str",")","Human-friendly","name","of","the","experiment",".","progress",":","(","Mutable",",","float",")","Completion","progress","of","experiment","in","range","(","0",",","1.0",")","where","1.0","is","100","%","completion",".","description",":","(","Mutable",",","string",")","Description","of","the","experiment",".","notes",":","(","Mutable",",","str",")","Notes","for","the","experiment",".","labels",":","(","Mutable",",","Optional","[","List","]",")","Labels","associated","with","the","experiment",".","project_id",":","(","Mutable",",","int",")","The","ID","of","the","project","associated","with","the","experiment",".","workspace_id",":","(","Mutable",",","int",")","The","ID","of","the","workspace","associated","with","the","experiment",".","Note",":","All","attributes","are","cached","by","default",".","Some","attributes","are","mutable","and","may","be","changed","by","methods","that","update","these","values",",","either","automatically","(","eg",".",":","meth",":","`","wait","(",")","`",")","or","explicitly","with",":","meth",":","`","reload","(",")","`","."]
docstr: Generate an iterator of trials of an experiment.
  
  Arguments:
      sort_by: Which field to sort by. See :class:`~determined.experimental.TrialSortBy`.
      order_by: Whether to sort in ascending or descending order. See
          :class:`~determined.experimental.OrderBy`.
      limit: Optional field that sets maximum page size of the response from the server.
          When there are many trials to return, a lower page size can result in shorter
          latency at the expense of more HTTP requests to the server. Defaults to no maximum.
  
  Returns:
      This method returns an Iterable of :class:`~determined.experimental.Trial` instances
      that lazily fetches response objects.
code: def iter_trials(
      self,
      sort_by: trial.TrialSortBy = trial.TrialSortBy.ID,
      order_by: OrderBy = OrderBy.ASCENDING,
      limit: Optional[int] = None,
  ) -> Iterator[trial.Trial]:
      """Generate an iterator of trials of an experiment.
  
      Arguments:
          sort_by: Which field to sort by. See :class:`~determined.experimental.TrialSortBy`.
          order_by: Whether to sort in ascending or descending order. See
              :class:`~determined.experimental.OrderBy`.
          limit: Optional field that sets maximum page size of the response from the server.
              When there are many trials to return, a lower page size can result in shorter
              latency at the expense of more HTTP requests to the server. Defaults to no maximum.
  
      Returns:
          This method returns an Iterable of :class:`~determined.experimental.Trial` instances
          that lazily fetches response objects.
      """
  
      def get_with_offset(
          offset: int,
      ) -> bindings.v1GetExperimentTrialsResponse:
          return bindings.get_GetExperimentTrials(
              self._session,
              experimentId=self._id,
              offset=offset,
              orderBy=bindings.v1OrderBy(order_by.value),
              limit=limit,
              sortBy=bindings.v1GetExperimentTrialsRequestSortBy(
                  sort_by.value
              ),
          )
  
      resps = api.read_paginated(get_with_offset)
  
      for r in resps:
          for t in r.trials:
              yield trial.Trial._from_bindings(t, self._session)
  
imports: import base64
  import enum
  import pathlib
  import sys
  import time
  import warnings
  from typing import Any, Dict, Iterator, List, Optional, Set, Union
  from determined.common import api
  from determined.common.api import bindings
  from determined.common.experimental import checkpoint, trial, workspace
  from determined.common.experimental._util import OrderBy
label_desc: Use image node_id 18 for calling the Experiment obj's underlying member method code with example usage: obj.iter_trials(sort_by, order_by, limit) and returns: bindings