docstr: Initialize a VarCollection with a dict.
docstr_tok: ["Initialize","a","VarCollection","with","a","dict","."]
code: def test_init_dict(self):
      """Initialize a VarCollection with a dict."""
      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 2 for calling the TestVarCollection obj's underlying member method code with example usage: obj.test_init_dict() without return types