code: def transfer_weights(
      src_module: torch.nn.Module, dst_module: torch.nn.Module
  ) -> None:
      for src_param, dst_param in zip(
          src_module.parameters(), dst_module.parameters()
      ):
          dst_param.detach().copy_(src_param.to(dst_param.device))
  
imports: from typing import Optional
  import torch
label_desc: Use image node_id 2 for calling a global function with example usage: transfer_weights(src_module, dst_module) without return types