code: def test__draw_samples__single_value_hysteresis(self):
      seed = 1
      nb_images = 1000
  
      aug = iaa.Canny(
          alpha=0.2,
          hysteresis_thresholds=[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
          sobel_kernel_size=[3, 5, 7],
          random_state=iarandom.RNG(seed),
      )
      aug.alpha = remove_prefetching(aug.alpha)
      aug.hysteresis_thresholds = remove_prefetching(
          aug.hysteresis_thresholds
      )
      aug.sobel_kernel_size = remove_prefetching(aug.sobel_kernel_size)
  
      example_image = np.zeros((5, 5, 3), dtype=np.uint8)
      samples = aug._draw_samples(
          [example_image] * nb_images, random_state=iarandom.RNG(seed)
      )
      alpha_samples = samples[0]
      hthresh_samples = samples[1]
      sobel_samples = samples[2]
  
      rss = iarandom.RNG(seed).duplicate(4)
      alpha_expected = iap.Deterministic(0.2).draw_samples(
          (nb_images,), rss[0]
      )
      hthresh_expected = iap.Choice(
          [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
      ).draw_samples((nb_images, 2), rss[1])
      sobel_expected = iap.Choice([3, 5, 7]).draw_samples(
          (nb_images,), rss[2]
      )
  
      invalid = hthresh_expected[:, 0] > hthresh_expected[:, 1]
      assert np.any(invalid)
      hthresh_expected[invalid, :] = hthresh_expected[invalid, :][
          :, [1, 0]
      ]
      assert hthresh_expected.shape == (nb_images, 2)
      assert not np.any(hthresh_expected[:, 0] > hthresh_expected[:, 1])
  
      assert np.allclose(alpha_samples, alpha_expected)
      assert np.allclose(hthresh_samples, hthresh_expected)
      assert np.allclose(sobel_samples, sobel_expected)
  
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 4 for calling the TestCanny obj's underlying member method code with example usage: obj.test__draw_samples__single_value_hysteresis() without return types