code: def __init__(self, beta):
      super().__init__()
      self.beta = beta
  
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 EMA object  with example: obj = EMA(beta)