class_docstr: Create confusion matrices using the `PyCM library <https://github.com/sepandhaghighi/pycm>`_.
  
  Args:
      kwargs: Additional keyword args to pass to the `ConfusionMatrix` call
docstr: Append the given output handler to the list of handlers
  
  Args:
      handler: A function of confusion and matrix and state
  
  Returns:
      PyCM: self
docstr_tok: ["Append","the","given","output","handler","to","the","list","of","handlers","Args",":","handler",":","A","function","of","confusion","and","matrix","and","state","Returns",":","PyCM",":","self"]
code: def with_handler(self, handler):
      """Append the given output handler to the list of handlers
  
      Args:
          handler: A function of confusion and matrix and state
  
      Returns:
          PyCM: self
      """
      self._handlers.append(handler)
      return self
  
imports: from __future__ import print_function
  import torch
  import torchbearer
  from torchbearer import Callback
  from torchbearer.bases import cite
  from torchbearer.metrics import EpochLambda, MetricList
label_desc: Use image node_id 6 for calling the PyCM obj's underlying member method code with example usage: obj.with_handler(handler) and returns: self