code: def _create_sparse_combiner_acc(
      data, n_partitions
  ) -> Tuple[np.ndarray, np.ndarray, np.ndarray]:
      """Creates sparse accumulators from raw data."""
      counts = np.array(list(map(len, data)))
      sums = np.array(list(map(sum, data)))
      n_partitions = np.array(n_partitions)
      return (counts, sums, n_partitions)
  
imports: import dataclasses
  import numpy
  from absl.testing import absltest
  from absl.testing import parameterized
  from unittest.mock import patch
  from typing import Tuple
  import pipeline_dp
  from analysis import per_partition_combiners
  from analysis import metrics
  from analysis.tests import common
label_desc: Use image node_id 3 for calling a global function with example usage: _create_sparse_combiner_acc(data, n_partitions) and returns: counts,  sums,  n_partitions