code: def test_shape(self, input_param, test_data, expected_shape):
      result = SqueezeDimd(**input_param)(test_data)
      self.assertTupleEqual(result["img"].shape, expected_shape)
      self.assertTupleEqual(result["seg"].shape, expected_shape)
      if (
          "dim" in input_param
          and isinstance(result["img"], MetaTensor)
          and input_param["dim"] == 2
      ):
          assert_allclose(result["img"].affine.shape, [3, 3])
  
file_path: MONAI/tests/test_squeezedimd.py
imports: from __future__ import annotations
  import unittest
  import numpy
  from parameterized import parameterized
  from monai.data import MetaTensor
  from monai.transforms import SqueezeDimd
  from tests.utils import TEST_NDARRAYS, assert_allclose
label_desc: Use image node_id 1 for calling the TestSqueezeDim obj's underlying member method code with example usage: obj.test_shape(input_param, test_data, expected_shape) without return types