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: Generate an iterator of metrics for the passed trials.
  
  This function opens up a persistent connection to the Determined master to receive trial
  metrics. For as long as the connection remains open, the generator it returns yields the
  TrialMetrics it receives.
  
  Arguments:
      trial_ids: The trial IDs to iterate over metrics for.
      group: The metric group to iterate over.  Common values are "validation" and "training",
          but group can be any value passed to master when reporting metrics during training
          (usually via a context's `report_metrics`).
  
  Returns:
      An iterable of :class:`~determined.experimental.TrialMetrics` objects.
docstr_tok: ["Generate","an","iterator","of","metrics","for","the","passed","trials",".","This","function","opens","up","a","persistent","connection","to","the","Determined","master","to","receive","trial","metrics",".","For","as","long","as","the","connection","remains","open",",","the","generator","it","returns","yields","the","TrialMetrics","it","receives",".","Arguments",":","trial_ids",":","The","trial","IDs","to","iterate","over","metrics","for",".","group",":","The","metric","group","to","iterate","over",".","Common","values","are","``","validation","''","and","``","training","''",",","but","group","can","be","any","value","passed","to","master","when","reporting","metrics","during","training","(","usually","via","a","context","'s","`","report_metrics","`",")",".","Returns",":","An","iterable","of",":","class",":","`","~determined.experimental.TrialMetrics","`","objects","."]
code: def iter_trials_metrics(
      self, trial_ids: List[int], group: str
  ) -> Iterable[metrics.TrialMetrics]:
      """Generate an iterator of metrics for the passed trials.
  
      This function opens up a persistent connection to the Determined master to receive trial
      metrics. For as long as the connection remains open, the generator it returns yields the
      TrialMetrics it receives.
  
      Arguments:
          trial_ids: The trial IDs to iterate over metrics for.
          group: The metric group to iterate over.  Common values are "validation" and "training",
              but group can be any value passed to master when reporting metrics during training
              (usually via a context's `report_metrics`).
  
      Returns:
          An iterable of :class:`~determined.experimental.TrialMetrics` objects.
      """
      return trial._stream_trials_metrics(
          self._session, trial_ids, group=group
      )
  
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 29 for calling the Determined obj's underlying member method code with example usage: obj.iter_trials_metrics(trial_ids, group) and returns: trial