code: def test__draw_samples(self):
      class _ListSampler(iap.StochasticParameter):
          def __init__(self, offset):
              super(_ListSampler, self).__init__()
              self.offset = offset
              self.last_random_state = None
  
          def _draw_samples(self, size, random_state=None):
              assert size == (3,)
              self.last_random_state = random_state
              return np.uint8([0, 1, 2]) + self.offset
  
      colorizer = iaa.RandomColorsBinaryImageColorizer(
          color_true=_ListSampler(0), color_false=_ListSampler(1)
      )
      random_state = iarandom.RNG(42)
      color_true, color_false = colorizer._draw_samples(random_state)
      assert np.array_equal(color_true, [0, 1, 2])
      assert np.array_equal(color_false, [1, 2, 3])
      assert colorizer.color_true.last_random_state.equals(random_state)
      assert colorizer.color_false.last_random_state.equals(
          random_state
      )
  
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 6 for calling the TestRandomColorsBinaryImageColorizer obj's underlying member method code with example usage: obj.test__draw_samples() and returns: unknown