class_docstr: A class representing a set of binary confusion matrices at thresholds.
  
  For each threshold, in addition to the count of examples per prediction and
  label, this class also contains a sample of raw examples. Threshold values are
  sorted, and the entries within  tp[i], tn[i], fp[i], and fn[i] correspond to
  thresholds[i].
class_docstr_tok: ["A","class","representing","a","set","of","binary","confusion","matrices","at","thresholds",".","For","each","threshold",",","in","addition","to","the","count","of","examples","per","prediction","and","label",",","this","class","also","contains","a","sample","of","raw","examples",".","Threshold","values","are","sorted",",","and","the","entries","within","tp","[","i","]",",","tn","[","i","]",",","fp","[","i","]",",","and","fn","[","i","]","correspond","to","thresholds","[","i","]","."]
docstr: Applies an operator on each element and the provided float.
docstr_tok: ["Applies","an","operator","on","each","element","and","the","provided","float","."]
code: def _apply_binary_op_broadcast(
      self, other: float, op: Callable[[float, float], float]
  ):
      """Applies an operator on each element and the provided float."""
      return Matrices(
          thresholds=self.thresholds,
          tp=[op(tp, other) for tp in self.tp],
          tn=[op(tn, other) for tn in self.tn],
          fp=[op(fp, other) for fp in self.fp],
          fn=[op(fn, other) for fn in self.fn],
      )
  
imports: from typing import Any, Callable, Dict, Iterable, List, NamedTuple, Optional, Tuple, Union
  import apache_beam
  import numpy
  from tensorflow_model_analysis.api import types
  from tensorflow_model_analysis.contrib.aggregates import binary_confusion_matrices
  from tensorflow_model_analysis.metrics import calibration_histogram
  from tensorflow_model_analysis.metrics import metric_types
  from tensorflow_model_analysis.metrics import metric_util
  from tensorflow_model_analysis.proto import config_pb2
  from tensorflow_model_analysis.proto import metrics_for_slice_pb2
label_desc: Use image node_id 2 for calling the Matrices obj's underlying member method code with example usage: obj._apply_binary_op_broadcast(other, op) and returns: Matrices