code: def test_transfer_weights(self) -> None:
      module1 = torch.nn.Linear(2, 2)
      module2 = torch.nn.Linear(2, 2)
      module3 = deepcopy(module2)
      self.assertFalse(
          torch.allclose(
              module1.state_dict()["weight"],
              module2.state_dict()["weight"],
          )
      )
      self.assertFalse(
          torch.allclose(
              module1.state_dict()["weight"],
              module3.state_dict()["weight"],
          )
      )
      self.assertTrue(
          torch.allclose(
              module2.state_dict()["weight"],
              module3.state_dict()["weight"],
          )
      )
      transfer_weights(module1, module2)
      self.assertTrue(
          torch.allclose(
              module1.state_dict()["weight"],
              module2.state_dict()["weight"],
          )
      )
      self.assertFalse(
          torch.allclose(
              module2.state_dict()["weight"],
              module3.state_dict()["weight"],
          )
      )
  
file_path: tnt/tests/utils/test_misc.py
imports: import unittest
  from copy import deepcopy
  import torch
  from torchtnt.utils.misc import days_to_secs, transfer_batch_norm_stats, transfer_weights
label_desc: Use image node_id 2 for calling the MiscTest obj's underlying member method code with example usage: obj.test_transfer_weights() without return types