docstr: Args:
      prob (float): the probability of flipping image
docstr_tok: ["Args",":","prob","(","float",")",":","the","probability","of","flipping","image"]
code: def __init__(self, prob=0.5):
      """
      Args:
          prob (float): the probability of flipping image
      """
      super(RandomRFlip, self).__init__()
      self.prob = prob
      if not (isinstance(self.prob, float)):
          raise TypeError("{}: input type is invalid.".format(self))
  
imports: from __future__ import absolute_import
  from __future__ import print_function
  from __future__ import division
  from numbers import Number, Integral
  import cv2
  import numpy
  import math
  import copy
  from .operators import register_op, BaseOperator
  from ppdet.modeling.rbox_utils import poly2rbox_le135_np, poly2rbox_oc_np, rbox2poly_np
  from ppdet.utils.logger import setup_logger
  from ppdet.utils.compact import imagedraw_textsize_c
label_desc: Use image node_id 1 to create a new RandomRFlip object from inherited base classes: BaseOperator with example: obj = RandomRFlip(prob)