code: def test_file_load_var_collection_rename(self):
      a = objax.nn.Conv2D(16, 16, 3)
      b = objax.nn.Conv2D(16, 16, 3)
      self.assertFalse(jn.array_equal(a.w.value, b.w.value))
      with io.BytesIO() as f:
          objax.io.save_var_collection(
              f,
              a.vars().rename(
                  objax.util.Renamer({"(Conv2D)": "(MyConv2D)"})
              ),
          )
          f.seek(0)
          objax.io.load_var_collection(
              f,
              b.vars(),
              renamer=objax.util.Renamer({"(MyConv2D)": "(Conv2D)"}),
          )
      self.assertEqual(a.w.value.dtype, b.w.value.dtype)
      self.assertTrue(jn.array_equal(a.w.value, a.w.value))
  
file_path: objax/tests/testio.py
imports: import io
  import tempfile
  import unittest
  import jax.numpy
  import objax
  from objax.zoo import wide_resnet
label_desc: Use image node_id 5 for calling the TestIO obj's underlying member method code with example usage: obj.test_file_load_var_collection_rename() without return types