code: def test_cval(self):
      cval = 200
      aug = iaa.RandAugment(n=1, m=30, cval=cval)
      img = np.zeros((20, 20, 3), dtype=np.uint8)
  
      x_cval = False
      y_cval = False
  
      # lots of iterations here, because only in some iterations an affine
      # translation is actually applied
      for _ in np.arange(500):
          img_aug = aug(image=img)
  
          x_cval = x_cval or np.all(img_aug[:, :1] == cval)
          x_cval = x_cval or np.all(img_aug[:, -1:] == cval)
          y_cval = y_cval or np.all(img_aug[:1, :] == cval)
          y_cval = y_cval or np.all(img_aug[-1:, :] == cval)
  
          if np.all([x_cval, y_cval]):
              break
  
      assert np.all([x_cval, y_cval])
  
file_path: imgaug/test/augmenters/test_collections.py
imports: from __future__ import print_function, division, absolute_import
  import sys
  import numpy
  from imgaug import augmenters
  from imgaug.testutils import reseed, runtest_pickleable_uint8_img
label_desc: Use image node_id 4 for calling the TestRandAugment obj's underlying member method code with example usage: obj.test_cval() without return types