code: def reset(self):
      self._sum = 0.0
      self._num_inst = 0.0
  
imports: import logging
  import math
  from abc import ABC, abstractmethod
  from typing import Any, Dict, Optional, Tuple
  import torch
  import numpy
  from .None import constants
  from .None import utils
label_desc: Use image node_id 8 for calling the LossMetric obj's underlying member method code with example usage: obj.reset() without return types