class_docstr: Performs DP aggregations.
class_docstr_tok: ["Performs","DP","aggregations","."]
code: def _check_budget_accountant_compatibility(
      self,
      is_public_partition: bool,
      metrics: Sequence[pipeline_dp.Metric],
      custom_combiner: bool,
  ) -> None:
      if isinstance(
          self._budget_accountant, pipeline_dp.NaiveBudgetAccountant
      ):
          # All aggregations support NaiveBudgetAccountant.
          return
      if not is_public_partition:
          raise NotImplementedError(
              "PLD budget accounting does not support "
              "private partition selection"
          )
      supported_metrics = [
          pipeline_dp.Metrics.COUNT,
          pipeline_dp.Metrics.PRIVACY_ID_COUNT,
          pipeline_dp.Metrics.SUM,
          pipeline_dp.Metrics.MEAN,
      ]
      non_supported_metrics = set(metrics) - set(supported_metrics)
      if non_supported_metrics:
          raise NotImplementedError(
              f"Metrics {non_supported_metrics} do not "
              f"support PLD budget accounting"
          )
      if custom_combiner:
          raise ValueError(
              f"PLD budget accounting does not support custom "
              f"combiners"
          )
  
imports: import functools
  from typing import Any, Callable, Optional, Sequence, Tuple, Union
  import pipeline_dp
  from pipeline_dp import budget_accounting
  from pipeline_dp import combiners
  from pipeline_dp import contribution_bounders
  from pipeline_dp import dp_computations
  from pipeline_dp import partition_selection
  from pipeline_dp import pipeline_functions
  from pipeline_dp import report_generator
  from pipeline_dp import sampling_utils
  from pipeline_dp.dataset_histograms import computing_histograms
  from pipeline_dp.private_contribution_bounds import PrivateL0Calculator
label_desc: Use image node_id 21 for calling the DPEngine obj's underlying member method code with example usage: obj._check_budget_accountant_compatibility(is_public_partition, metrics, custom_combiner) without return types