code: def _random_patch(self, image, config, bboxes=None):
      with self.test_session() as sess:
          image = tf.cast(image, tf.float32)
          if bboxes is not None:
              bboxes = tf.cast(bboxes, tf.int32)
          patch = random_patch(image, bboxes=bboxes, seed=0, **config)
          return_dict = sess.run(patch)
          ret_bboxes = return_dict.get("bboxes")
          return return_dict["image"], ret_bboxes
  
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 6 for calling the ImageTest obj's underlying member method code with example usage: obj._random_patch(image, config, bboxes) and returns: return_dict,  ret_bboxes