code: def moving_average(target1, target2, alpha=1.0):
      target = 0
      target += (1.0 - alpha) * target1
      target += target2 * alpha
      return target
  
file_path: insightface/parsing/dml_csr/loss/criterion.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import torch.nn
  import torch
  import numpy
  from torch.nn import functional
  from torch.nn.modules.loss import _Loss
  from .lovasz_softmax import LovaszSoftmax
  from .kl_loss import KLDivergenceLoss
  from .consistency_loss import ConsistencyLoss
label_desc: Use image node_id 1 for calling a global function with example usage: moving_average(target1, target2, alpha) and returns: target