class_docstr: 随机对输入图片进行水平翻转，注意该方法必须接在 AffineTransform 后
class_docstr_tok: ["\u968f\u673a\u5bf9\u8f93\u5165\u56fe\u7247\u8fdb\u884c\u6c34\u5e73\u7ffb\u8f6c\uff0c\u6ce8\u610f\u8be5\u65b9\u6cd5\u5fc5\u987b\u63a5\u5728","AffineTransform","\u540e"]
code: def __init__(self, p: float = 0.5, matched_parts: list = None):
      assert matched_parts is not None
      self.p = p
      self.matched_parts = matched_parts
  
imports: import math
  import random
  from typing import Tuple
  import cv2
  import numpy
  import torch
  from torchvision.transforms import functional
  import matplotlib.pyplot
label_desc: Use image node_id 1 to create a new RandomHorizontalFlip object from inherited base classes: object with example: obj = RandomHorizontalFlip(p, matched_parts)