code: def compute_metrics(self, binned_data):
      to_compute_col = self.bin_col + self.category_col
      to_compute_data = binned_data[to_compute_col]
  
      feature_bin_sizes = [
          self._bin_count_dict[col] for col in self.bin_col
      ]
      if self.category_col:
          for col in self.category_col:
              category_bin_size = (
                  binned_data[col].get_dummies().shape[1]
              )
              feature_bin_sizes.append(category_bin_size)
      hist_targets = binned_data.create_frame()
      hist_targets["event_count"] = binned_data.label
      hist_targets["non_event_count"] = 1
      dtypes = hist_targets.dtypes
      hist_schema = {
          "event_count": {
              "type": "plaintext",
              "stride": 1,
              "dtype": dtypes["event_count"],
          },
          "non_event_count": {
              "type": "plaintext",
              "stride": 1,
              "dtype": dtypes["non_event_count"],
          },
      }
      hist = HistogramBuilder(
          num_node=1,
          feature_bin_sizes=feature_bin_sizes,
          value_schemas=hist_schema,
          enable_cumsum=False,
      )
      event_non_event_count_hist = (
          to_compute_data.distributed_hist_stat(
              histogram_builder=hist, targets=hist_targets
          )
      )
      event_non_event_count_hist.i_sub_on_key(
          "non_event_count", "event_count"
      )
      event_non_event_count_hist = event_non_event_count_hist.decrypt(
          {}, {}
      ).reshape(feature_bin_sizes)
      (
          self._metrics_summary,
          self._woe_dict,
      ) = self.compute_all_col_metrics(
          event_non_event_count_hist, to_compute_col
      )
  
imports: import logging
  import numpy
  import pandas
  from fate.arch import Context
  from fate.arch.histogram import HistogramBuilder
  from ..abc.module import HeteroModule, Module
label_desc: Use image node_id 6 for calling the StandardBinning obj's underlying member method code with example usage: obj.compute_metrics(binned_data) without return types