code: def set_flat_weights(self, flat_weights):
      weights = utils.unflatten(flat_weights, self.weights_shapes)
      weights_dcit = {}
      assert len(weights) == len(self.weights_name)
      for name, values in zip(self.weights_name, weights):
          weights_dcit[name] = values
      self.set_weights(weights_dcit)
  
file_path: PARL/benchmark/torch/ES/mujoco_agent.py
imports: import numpy
  import torch
  import parl
  import utils
  from optimizers import Adam
label_desc: Use image node_id 5 for calling the MujocoAgent obj's underlying member method code with example usage: obj.set_flat_weights(flat_weights) without return types