code: def _merge_partition_selection_accumulators(
      acc1: PartitionSelectionAccumulator,
      acc2: PartitionSelectionAccumulator,
  ) -> PartitionSelectionAccumulator:
      probs1, moments1 = acc1
      probs2, moments2 = acc2
      if (
          (probs1 is not None)
          and (probs2 is not None)
          and len(probs1) + len(probs2)
          <= MAX_PROBABILITIES_IN_ACCUMULATOR
      ):
          return (_merge_list(probs1, probs2), None)
  
      if moments1 is None:
          moments1 = _probabilities_to_moments(probs1)
      if moments2 is None:
          moments2 = _probabilities_to_moments(probs2)
  
      return (None, moments1 + moments2)
  
imports: import abc
  import copy
  from dataclasses import dataclass
  from typing import Any, List, Optional, Tuple
  import numpy
  import math
  import pipeline_dp
  from pipeline_dp import budget_accounting
  from pipeline_dp import dp_computations
  from analysis import metrics
  from analysis import poisson_binomial
  from pipeline_dp import partition_selection
label_desc: Use image node_id 3 for calling a global function with example usage: _merge_partition_selection_accumulators(acc1, acc2) and returns: None,  unknown, _merge_list,  None