code: def test_compute_metrics(
      self, num_partitions, contribution_values, expected_metrics
  ):
      combiner = self._create_combiner()
      acc = combiner.create_accumulator(
          (
              len(contribution_values),
              sum(contribution_values),
              num_partitions,
          )
      )
      self.assertEqual(
          expected_metrics, combiner.compute_metrics(acc)[0]
      )
  
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 9 for calling the UtilityAnalysisCompoundCombinerTest obj's underlying member method code with example usage: obj.test_compute_metrics(num_partitions, contribution_values, expected_metrics) without return types