code: def test_contribution_bounds_already_enforced_sensible_result(self):
      # Arrange.
      # Set large budget, so the noise is very small.
      accountant = pipeline_dp.NaiveBudgetAccountant(
          total_epsilon=1000, total_delta=0.999
      )
      engine = self._create_dp_engine_default(accountant=accountant)
      (
          aggregate_params,
          public_partitions,
      ) = self._create_params_default()
      aggregate_params.contribution_bounds_already_enforced = True
      aggregate_params.metrics = [pipeline_dp.Metrics.SUM]
  
      input = [(pk, 1) for pk in public_partitions]
  
      data_extractors = pipeline_dp.DataExtractors(
          partition_extractor=lambda x: x[0],
          value_extractor=lambda x: x[1],
      )
      data_extractors.privacy_id_extractor = None
  
      # Act.
      col = engine.aggregate(
          input, aggregate_params, data_extractors, public_partitions
      )
      accountant.compute_budgets()
      col = list(col)
  
      # Assert.
      self.assertLen(col, len(public_partitions))
      values = [x[1].sum for x in col]
      self.assertSequenceAlmostEqual(
          values, [1.0] * len(public_partitions)
      )
  
imports: import sys
  import unittest
  from typing import List, Optional, Tuple
  from unittest.mock import patch
  import numpy
  import apache_beam
  import apache_beam.testing.test_pipeline
  import apache_beam.testing.util
  import pydp.algorithms.partition_selection
  from absl.testing import absltest
  from absl.testing import parameterized
  import pipeline_dp
  from pipeline_dp import aggregate_params
  from pipeline_dp import budget_accounting
  from pipeline_dp import dp_computations
  from pipeline_dp.budget_accounting import NaiveBudgetAccountant
  from pipeline_dp.pipeline_backend import PipelineBackend
  from pipeline_dp.pipeline_functions import collect_to_container
  from pipeline_dp.report_generator import ReportGenerator
label_desc: Use image node_id 25 for calling the DpEngineTest obj's underlying member method code with example usage: obj.test_contribution_bounds_already_enforced_sensible_result() without return types