code: def _stream_trials_metrics(
      session: api.Session, trial_ids: List[int], group: str
  ) -> Iterable[metrics.TrialMetrics]:
      for i in bindings.get_GetMetrics(
          session, trialIds=trial_ids, group=group
      ):
          for m in i.metrics:
              yield metrics.TrialMetrics._from_bindings(m, group=group)
  
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 for calling a global function with example usage: _stream_trials_metrics(session, trial_ids, group) without return types