code: def __init__(self, prob):
      super().__init__()
      assert 0 <= prob < 1.0
      self.prob = prob
  
imports: import torch
  from torch import nn
  from einops import rearrange
  from einops.layers.torch import Rearrange
label_desc: Use image node_id 1 to create a new PatchDropout object from inherited base classes: nn with example: obj = PatchDropout(prob)