code: def __init__(self, fn, p):
      super().__init__()
      self.fn = fn
      self.p = p
  
imports: import copy
  import random
  from functools import wraps, partial
  import torch
  from torch import nn, einsum
  import torch.nn.functional
  from torchvision import transforms
  from einops import rearrange, reduce, repeat
label_desc: Use image node_id 1 to create a new RandomApply object from inherited base classes: nn with example: obj = RandomApply(fn, p)