code: def test_repeated_batch_metrics_handling(self):
      expected_names = ["some_metric_name1", "some_metric_name2"]
      model = Model(
          self.pytorch_network,
          self.optimizer,
          self.loss_function,
          batch_metrics=[get_batch_metric(1), get_batch_metric(2)],
      )
      self._test_history(model, expected_names, [1, 2])
  
imports: import os
  import unittest
  from unittest import skipIf
  from unittest.mock import ANY
  import numpy
  import torch
  import torch.nn
  import torchmetrics
  from poutyne import Metric, Model, do_register_metric_class, rename_doubles, unregister_metric_class
label_desc: Use image node_id 2 for calling the MetricsModelIntegrationTest obj's underlying member method code with example usage: obj.test_repeated_batch_metrics_handling() without return types