code: def test_colorize__three_channels(self):
      colorizer = iaa.RandomColorsBinaryImageColorizer(
          color_true=100, color_false=10
      )
      random_state = iarandom.RNG(42)
  
      # input image has shape (H,W,3)
      image = np.zeros((5, 5, 3), dtype=np.uint8)
      image[:, 0:3, :] = 255
      image_binary = np.zeros((5, 5), dtype=bool)
      image_binary[:, 0:3] = True
  
      image_color = colorizer.colorize(
          image_binary, image, nth_image=0, random_state=random_state
      )
  
      assert image_color.ndim == 3
      assert image_color.shape[-1] == 3
      assert np.all(image_color[image_binary] == 100)
      assert np.all(image_color[~image_binary] == 10)
  
imports: from __future__ import print_function, division, absolute_import
  import itertools
  import sys
  import numpy
  import cv2
  from imgaug import augmenters
  from imgaug import parameters
  from imgaug import random
  from imgaug.testutils import reseed, runtest_pickleable_uint8_img, is_parameter_instance, remove_prefetching
label_desc: Use image node_id 8 for calling the TestRandomColorsBinaryImageColorizer obj's underlying member method code with example usage: obj.test_colorize__three_channels() without return types