code: def test_create_test_image(
      self,
      dim,
      input_param,
      expected_img,
      expected_seg,
      expected_shape,
      expected_max_cls,
  ):
      set_determinism(seed=0)
      if dim == 2:
          img, seg = create_test_image_2d(**input_param)
      elif dim == 3:
          img, seg = create_test_image_3d(**input_param)
      self.assertEqual(img.shape, expected_shape)
      self.assertEqual(seg.max(), expected_max_cls)
      np.testing.assert_allclose(
          img.mean(), expected_img, atol=1e-7, rtol=1e-7
      )
      np.testing.assert_allclose(
          seg.mean(), expected_seg, atol=1e-7, rtol=1e-7
      )
  
file_path: MONAI/tests/test_synthetic.py
imports: from __future__ import annotations
  import unittest
  import numpy
  from parameterized import parameterized
  from monai.data import create_test_image_2d, create_test_image_3d
  from monai.utils import set_determinism
label_desc: Use image node_id 1 for calling the TestDiceCELoss obj's underlying member method code with example usage: obj.test_create_test_image(dim, input_param, expected_img, expected_seg, expected_shape, expected_max_cls) without return types