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