code: def test_shape(self, input_param, input_data, expected_value):
      result = MapLabelValued(**input_param)(input_data)
      if isinstance(expected_value, torch.Tensor):
          assert_allclose(result["seg"], expected_value)
      else:
          np.testing.assert_equal(result["seg"], expected_value)
      self.assertTupleEqual(result["seg"].shape, expected_value.shape)
  
file_path: MONAI/tests/test_map_label_valued.py
imports: from __future__ import annotations
  import unittest
  import numpy
  import torch
  from parameterized import parameterized
  from monai.transforms import MapLabelValued
  from tests.utils import assert_allclose
label_desc: Use image node_id 1 for calling the TestMapLabelValued obj's underlying member method code with example usage: obj.test_shape(input_param, input_data, expected_value) without return types