code: def test_reset_loss_unimodal(unimodal_model, dataset):
      """Test if the model is resetting the loss function in the unimodal case."""
      y_pred = dataset["output"]["unimodal"]["y_pred"]
      y_true = dataset["output"]["unimodal"]["y_true"]
  
      unimodal_model.loss(y_pred, y_true)
      unimodal_model._reset_loss()
      assert np.isclose(unimodal_model.loss.total, 0)
      assert np.isclose(unimodal_model.loss.count, 0)
  
imports: from typing import List
  import numpy
  import pytest
  import torch
  import torch.nn
  import torch.optim
  from torch.utils.data import DataLoader, TensorDataset
  from alibi.models.pytorch.metrics import AccuracyMetric, LossContainer
  from alibi.models.pytorch.model import Model
label_desc: Use image node_id 20 for calling a global function with example usage: test_reset_loss_unimodal(unimodal_model, dataset) without return types