code: def init_ema_params(ema_model, model):
      state = {}
      msd = model.state_dict()
      for k, v in ema_model.state_dict().items():
          if paddle.is_floating_point(v):
              v = msd[k].detach()
          state[k] = v
      ema_model.set_state_dict(state)
  
imports: import numpy
  import paddle
label_desc: Use image node_id 2 for calling a global function with example usage: init_ema_params(ema_model, model) without return types