code: def test_results(self, input_param, input_data, expected_val):
      metric = MMDMetric(**input_param)
      results = metric(**input_data)
      np.testing.assert_allclose(
          results.detach().cpu().numpy(), expected_val, rtol=1e-4
      )
  
file_path: MONAI/tests/test_compute_mmd_metric.py
imports: from __future__ import annotations
  import unittest
  import numpy
  import torch
  from parameterized import parameterized
  from monai.metrics import MMDMetric
label_desc: Use image node_id 1 for calling the TestMMDMetric obj's underlying member method code with example usage: obj.test_results(input_param, input_data, expected_val) without return types