code: def ema_inplace(moving_avg, new, decay):
      moving_avg.data.mul_(decay).add_(new, alpha=(1 - decay))
  
imports: import torch
  import torch.nn
  import torch.nn.functional
  import torch.distributed
label_desc: Use image node_id 2 for calling a global function with example usage: ema_inplace(moving_avg, new, decay) without return types