code: def update_metrics(self, losses, monitor):
      self.metrics[self._model_state.value].update(monitor)
      self.metrics[self._model_state.value]["loss"] = losses.avg
  
imports: import warnings
  import psutil
  import torch
  import torch.nn
  from tqdm import tqdm
  from tez import enums
  from tez.callbacks import CallbackRunner
  from tez.utils import AverageMeter
label_desc: Use image node_id 17 for calling the Model obj's underlying member method code with example usage: obj.update_metrics(losses, monitor) without return types