class_docstr: 随机水平翻转图像以及bboxes
class_docstr_tok: ["\u968f\u673a\u6c34\u5e73\u7ffb\u8f6c\u56fe\u50cf\u4ee5\u53cabboxes"]
code: def __call__(self, image, target):
      if random.random() < self.prob:
          height, width = image.shape[-2:]
          image = image.flip(-1)  # 水平翻转图片
          bbox = target["boxes"]
          # bbox: xmin, ymin, xmax, ymax
          bbox[:, [0, 2]] = width - bbox[:, [2, 0]]  # 翻转对应bbox坐标信息
          target["boxes"] = bbox
      return image, target
  
file_path: deep-learning-for-image-processing/pytorch_object_detection/faster_rcnn/transforms.py
imports: import random
  from torchvision.transforms import functional
label_desc: Use image node_id 2 for calling the RandomHorizontalFlip obj's underlying member method code with example usage: obj.__call__(image, target) and returns: image,  target