code: def _estimate_rmse_impl(
      ratio_dropped: float,
      std: float,
      partition_histogram: hist.Histogram,
  ) -> float:
      sum_rmse = 0
      num_partitions = partition_histogram.total_count()
      for bin in partition_histogram.bins:
          average_partition_size_in_bin = bin.sum / bin.count
          rmse = math.sqrt(
              (ratio_dropped * average_partition_size_in_bin) ** 2
              + std**2
          )
          sum_rmse += bin.count * rmse
      return sum_rmse / num_partitions
  
file_path: pipelinedp/pipeline_dp/dataset_histograms/histogram_error_estimator.py
imports: import pipeline_dp
  from pipeline_dp.dataset_histograms import histograms
  from typing import Optional, Sequence, Tuple
  import math
  import bisect
label_desc: Use image node_id 2 for calling a global function with example usage: _estimate_rmse_impl(ratio_dropped, std, partition_histogram) and returns: unknown