code: def test_categorical(self, input_param, input_data, expected_val):
      metric = MetricsReloadedCategorical(**input_param)
      result = metric(*input_data)
      np.testing.assert_allclose(
          result.detach().cpu().numpy(), expected_val, rtol=1e-5
      )
  
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 2 for calling the TestMetricsReloaded obj's underlying member method code with example usage: obj.test_categorical(input_param, input_data, expected_val) without return types