code: def _test_history(self, model, names, values):
      history = model.fit(
          self.train_x,
          self.train_y,
          validation_data=(self.valid_x, self.valid_y),
          batch_size=MetricsModelIntegrationTest.batch_size,
          epochs=MetricsModelIntegrationTest.epochs,
      )
      for logs in history:
          for name, value in zip(names, values):
              self.assertIn(name, logs)
              self.assertEqual(value, logs[name])
              self.assertIn("val_" + name, logs)
              self.assertEqual(value, logs["val_" + name])
  
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 26 for calling the MetricsModelIntegrationTest obj's underlying member method code with example usage: obj._test_history(model, names, values) without return types