class_docstr: Metric representing (partial) learning curves of ML model training jobs.
docstr: Get backend run ids associated with trials.
  
  Args:
      trials: The trials for which to retrieve the associated
          ids that can be used to to identify the corresponding
          runs on the backend.
  
  Returns:
      A dictionary mapping the trial indices to the identifiers
      (ints or strings) corresponding to the backend runs associated
      with the trials. Trials whose corresponding ids could not be
      found should be omitted.
code: def get_ids_from_trials(
      self, trials: Iterable[BaseTrial]
  ) -> Dict[int, Union[int, str]]:
      """Get backend run ids associated with trials.
  
      Args:
          trials: The trials for which to retrieve the associated
              ids that can be used to to identify the corresponding
              runs on the backend.
  
      Returns:
          A dictionary mapping the trial indices to the identifiers
          (ints or strings) corresponding to the backend runs associated
          with the trials. Trials whose corresponding ids could not be
          found should be omitted.
      """
      ...
  
imports: from __future__ import annotations
  from abc import ABC, abstractmethod
  from logging import Logger
  from typing import Any, Dict, Iterable, Optional, Set, Union
  import numpy
  import pandas
  from ax.core.base_trial import BaseTrial
  from ax.core.batch_trial import BatchTrial
  from ax.core.experiment import Experiment
  from ax.core.map_data import MapData, MapKeyInfo
  from ax.core.map_metric import MapMetric
  from ax.core.metric import Metric, MetricFetchE, MetricFetchResult
  from ax.core.trial import Trial
  from ax.early_stopping.utils import align_partial_results
  from ax.exceptions.core import UnsupportedError
  from ax.utils.common.logger import get_logger
  from ax.utils.common.result import Err, Ok
  from ax.utils.common.typeutils import checked_cast
label_desc: Use image node_id 3 for calling the AbstractCurveMetric obj's underlying member method code with example usage: obj.get_ids_from_trials(trials) without return types