class_docstr: Computes the confusion matrix and is based on `FCN <https://github.com/shelhamer/fcn.berkeleyvision.org/blob/master/score.py>`_
code: def reset(self):
      self.confusion_mat = None
      self.prediction_key = "logits"
  
file_path: ml-cvnets/metrics/confusion_mat.py
imports: from numbers import Number
  from typing import Any, Dict, List, Optional, Union
  import torch
  from torch import Tensor
  from metrics import METRICS_REGISTRY
  from metrics.metric_base import BaseMetric
  from utils.tensor_utils import reduce_tensor_sum
label_desc: Use image node_id 1 for calling the ConfusionMatrix obj's underlying member method code with example usage: obj.reset() without return types