class_docstr: Computes binary confusion matrix.
code: def extract_output(
      self, accumulator: MatrixAccumulator
  ) -> MatrixAccumulator:
      for threshold in self._thresholds:
          if threshold not in accumulator:
              accumulator[threshold] = _ThresholdEntry(
                  Matrix(tp=0.0, tn=0.0, fp=0.0, fn=0.0),
                  tp_examples=[],
                  tn_examples=[],
                  fp_examples=[],
                  fn_examples=[],
              )
      return accumulator
  
file_path: model-analysis/tensorflow_model_analysis/contrib/aggregates/binary_confusion_matrices.py
imports: from typing import Dict, Iterable, List, NamedTuple, Optional, Sequence
  from tensorflow_model_analysis.experimental.lazytf import api
label_desc: Use image node_id 8 for calling the BinaryConfusionMatrices obj's underlying member method code with example usage: obj.extract_output(accumulator) and returns: accumulator