code: def test_value(self, input_data, expected_value):
      result = compute_generalized_dice(**input_data)
      np.testing.assert_allclose(
          result.cpu().numpy(), expected_value, atol=1e-4
      )
  
file_path: MONAI/tests/test_compute_generalized_dice.py
imports: from __future__ import annotations
  import unittest
  import numpy
  import torch
  from parameterized import parameterized
  from monai.metrics import GeneralizedDiceScore, compute_generalized_dice
label_desc: Use image node_id 2 for calling the TestComputeGeneralizedDiceScore obj's underlying member method code with example usage: obj.test_value(input_data, expected_value) without return types