code: def update_params(self):
      decay = self.alpha
      state = self.model.state_dict()  # current params
      for name in self.param_keys:
          self.shadow[name] = (
              decay * self.shadow[name]
              + (1 - decay) * state[name].detach().clone()
          )
      self.step += 1
  
file_path: PaddleSeg/contrib/DomainAdaptation/models/ema.py
label_desc: Use image node_id 2 for calling the EMA obj's underlying member method code with example usage: obj.update_params() without return types