code: def _create_accumulator_factories(
      metrics: Sequence[pipeline_dp.Metrics],
  ) -> List[AccumulatorFactory]:
      """Creates accumulator factories for the given metrics.
  
      Args:
        metrics: All metrics to compute. Dupliate metrics will be seen as one.
  
      Returns:
        A list of accumulator factories corrsponding to the input metrics.
      """
      factories = []
      if pipeline_dp.Metrics.COUNT in metrics:
          factories.append(CountAccumulatorFactory())
      if pipeline_dp.Metrics.SUM in metrics:
          factories.append(SumAccumulatorFactory())
      if pipeline_dp.Metrics.PRIVACY_ID_COUNT in metrics:
          factories.append(PrivacyIdCountAccumulatorFactory())
      return factories
  
imports: import abc
  from typing import Any, List, Sequence
  import pipeline_dp
label_desc: Use image node_id 1 for calling a global function with example usage: _create_accumulator_factories(metrics) and returns: factories