code: def test_repeated_torch_metrics_handling(self):
      expected_names = [
          "my_const_torch_metric1",
          "my_const_torch_metric2",
      ]
      model = Model(
          self.pytorch_network,
          self.optimizer,
          self.loss_function,
          batch_metrics=[MyConstTorchMetric(1), MyConstTorchMetric(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 23 for calling the MetricsModelIntegrationTest obj's underlying member method code with example usage: obj.test_repeated_torch_metrics_handling() without return types