class_docstr: 随机水平翻转图像以及bboxes,该方法应放在ToTensor后
class_docstr_tok: ["\u968f\u673a\u6c34\u5e73\u7ffb\u8f6c\u56fe\u50cf\u4ee5\u53cabboxes",",","\u8be5\u65b9\u6cd5\u5e94\u653e\u5728ToTensor\u540e"]
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坐标信息
          bbox[:, [0, 2]] = 1.0 - bbox[:, [2, 0]]  # 翻转对应bbox坐标信息
          target["boxes"] = bbox
      return image, target
  
imports: import random
  import torch
  import torchvision.transforms
  from torchvision.transforms import functional
  from src import dboxes300_coco, calc_iou_tensor, Encoder
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