code: def test_spatial_case_class(self, input_data, expected_value):
      vals = {}
      vals["y_pred"] = input_data.pop("y_pred")
      vals["y"] = input_data.pop("y")
      comp_var = LabelQualityScore(**input_data)
      result = comp_var(**vals)
      np.testing.assert_allclose(
          result.cpu().numpy(), expected_value, atol=1e-4
      )
  
file_path: MONAI/tests/test_label_quality_score.py
imports: from __future__ import annotations
  import unittest
  import numpy
  import torch
  from parameterized import parameterized
  from monai.metrics import LabelQualityScore, label_quality_score
label_desc: Use image node_id 4 for calling the TestLabelQualityScore obj's underlying member method code with example usage: obj.test_spatial_case_class(input_data, expected_value) without return types