code: def get_data(im_shape, input_type):
      create_test_image = (
          create_test_image_2d
          if len(im_shape) == 2
          else create_test_image_3d
      )
      im = create_test_image(
          *im_shape, rad_max=20, noise_max=0.0, num_seg_classes=5
      )[0][None]
      return input_type(im)
  
file_path: MONAI/tests/test_rand_gibbs_noise.py
imports: from __future__ import annotations
  import unittest
  from copy import deepcopy
  import numpy
  from parameterized import parameterized
  from monai.data.synthetic import create_test_image_2d, create_test_image_3d
  from monai.transforms import RandGibbsNoise
  from monai.utils.misc import set_determinism
  from monai.utils.module import optional_import
  from tests.utils import TEST_NDARRAYS, assert_allclose
label_desc: Use image node_id 3 for calling the TestRandGibbsNoise obj's underlying member method code with example usage: obj.get_data(im_shape, input_type) and returns: input_type