code: def test_value_shape(self, input_param, img, out, expected_shape):
      result = Activations(**input_param)(img)
  
      def _compare(ret, out, shape):
          assert_allclose(ret, out, rtol=1e-3, type_test=False)
          self.assertTupleEqual(ret.shape, shape)
  
      if isinstance(result, (list, tuple)):
          for r, e in zip(result, out):
              _compare(r, e, expected_shape)
      else:
          _compare(result, out, expected_shape)
  
file_path: MONAI/tests/test_activations.py
imports: from __future__ import annotations
  import unittest
  import torch
  from parameterized import parameterized
  from monai.networks.layers.factories import Act
  from monai.transforms import Activations
  from tests.utils import TEST_NDARRAYS, assert_allclose
label_desc: Use image node_id 1 for calling the TestActivations obj's underlying member method code with example usage: obj.test_value_shape(input_param, img, out, expected_shape) without return types