code: def get_random_image(
      height, width, num_channels=3, channels_first=True
  ):
      shape = (
          (num_channels, height, width)
          if channels_first
          else (height, width, num_channels)
      )
      random_array = np.random.randint(0, 256, shape, dtype=np.uint8)
      return random_array
  
imports: import unittest
  import numpy
  from parameterized import parameterized
  from transformers.testing_utils import require_flax, require_tf, require_torch, require_vision
  from transformers.utils.import_utils import is_flax_available, is_tf_available, is_torch_available, is_vision_available
label_desc: Use image node_id 1 for calling a global function with example usage: get_random_image(height, width, num_channels, channels_first) and returns: random_array