docstr: Initialize a VarCollection with a list.
docstr_tok: ["Initialize","a","VarCollection","with","a","list","."]
code: def test_init_list(self):
      """Initialize a VarCollection with a list."""
      vc = objax.VarCollection(
          [
              ("a", objax.TrainVar(jn.zeros(1))),
              ("b", objax.TrainVar(jn.ones(1))),
          ]
      )
      self.assertEqual(len(vc), 2)
      self.assertEqual(vc["a"].value.sum(), 0)
      self.assertEqual(vc["b"].value.sum(), 1)
  
file_path: objax/tests/var_collection.py
imports: import re
  import unittest
  import jax.numpy
  import objax
  from objax.zoo import wide_resnet
label_desc: Use image node_id 1 for calling the TestVarCollection obj's underlying member method code with example usage: obj.test_init_list() without return types