code: def _test_stats(self, expected, actual):
      self.assertEqual(len(expected), len(actual))
      self.assertEqual(expected.keys(), actual.keys())
      for expected_value, actual_value in zip(
          expected.values(), actual.values()
      ):
          self.assertAlmostEqual(
              float(expected_value), float(actual_value), places=3
          )
  
imports: import math
  from tempfile import TemporaryDirectory
  from unittest import TestCase, skipIf
  from unittest.mock import ANY, MagicMock, call
  import torch
  import torch.nn
  from tests.framework.tools import some_data_generator
  from poutyne import GradientTracker, Model, TensorBoardGradientTracker, WeightsGradientsStatsTracker
label_desc: Use image node_id 5 for calling the GradientStatsTrackerTest obj's underlying member method code with example usage: obj._test_stats(expected, actual) without return types