code: def test_binary(self, input_param, input_data, expected_val):
      metric = MetricsReloadedBinary(**input_param)
      result = metric(*input_data)
      np.testing.assert_allclose(
          result.detach().cpu().numpy(),
          expected_val,
          rtol=1e-5,
          err_msg=input_param["metric_name"],
      )
  
file_path: MONAI/tests/test_metrics_reloaded.py
imports: from __future__ import annotations
  import unittest
  import numpy
  import torch
  from parameterized import parameterized
  from monai.metrics import MetricsReloadedBinary, MetricsReloadedCategorical
  from monai.utils import optional_import
label_desc: Use image node_id 1 for calling the TestMetricsReloaded obj's underlying member method code with example usage: obj.test_binary(input_param, input_data, expected_val) without return types