docstr: Tests the integrity of the return values of random_patch
  
  When bboxes is None.
docstr_tok: ["Tests","the","integrity","of","the","return","values","of","random_patch","When","bboxes","is","None","."]
code: def testRandomPatchOnlyImage(self):
      """Tests the integrity of the return values of random_patch
  
      When bboxes is None.
      """
      im_shape = (600, 800, 3)
      image = self._gen_image(*im_shape)
      config = self._random_patch_config
      ret_image, ret_bboxes = self._random_patch(image, config)
      # Assertions
      self.assertTrue(np.all(ret_image.shape <= im_shape))
      # We ran return_dict.get('bboxes') on the dict returned by
      # random_patch. That's why we should get a None in this case.
      self.assertIs(ret_bboxes, None)
  
imports: import numpy
  import tensorflow
  from easydict import EasyDict
  from luminoth.utils.image import resize_image, flip_image, random_patch, random_resize, random_distortion, patch_image
  from luminoth.utils.test.gt_boxes import generate_gt_boxes
label_desc: Use image node_id 17 for calling the ImageTest obj's underlying member method code with example usage: obj.testRandomPatchOnlyImage() without return types