code: def test_type_shape(
      self, input_param, input_data, expected_type, expected_shape
  ):
      result = RandCropByLabelClasses(**input_param)(**input_data)
      self.assertIsInstance(result, expected_type)
      self.assertTupleEqual(result[0].shape, expected_shape)
  
file_path: MONAI/tests/test_rand_crop_by_label_classes.py
imports: from __future__ import annotations
  import unittest
  import numpy
  from parameterized import parameterized
  from monai.data.meta_tensor import MetaTensor
  from monai.transforms import ClassesToIndices, RandCropByLabelClasses
  from monai.transforms.lazy.functional import apply_pending
  from tests.utils import TEST_NDARRAYS_ALL, assert_allclose
label_desc: Use image node_id 1 for calling the TestRandCropByLabelClasses obj's underlying member method code with example usage: obj.test_type_shape(input_param, input_data, expected_type, expected_shape) without return types