code: def main_params_to_model_params(model, main_params):
      params = [param.data for param in model.parameters()]
      for param, main in zip(
          params, _unflatten_dense_tensors(main_params.data, params)
      ):
          param.copy_(main)
  
imports: import torch
  import torch.nn
  from torch._utils import _flatten_dense_tensors, _unflatten_dense_tensors
label_desc: Use image node_id 8 for calling a global function with example usage: main_params_to_model_params(model, main_params) without return types