code: def testSomeValues(self):
      hparams = hparam.HParams(aaa=1, b=2.0, c_c="relu6", d="/a/b=c/d")
      self.assertDictEqual(
          {"aaa": 1, "b": 2.0, "c_c": "relu6", "d": "/a/b=c/d"},
          hparams.values(),
      )
      expected_str = (
          "[('aaa', 1), ('b', 2.0), ('c_c', 'relu6'), "
          "('d', '/a/b=c/d')]"
      )
      self.assertEqual(expected_str, str(hparams.__str__()))
      self.assertEqual(expected_str, str(hparams))
      self.assertEqual(1, hparams.aaa)
      self.assertEqual(2.0, hparams.b)
      self.assertEqual("relu6", hparams.c_c)
      self.assertEqual("/a/b=c/d", hparams.d)
      hparams.parse("aaa=12")
      self.assertDictEqual(
          {"aaa": 12, "b": 2.0, "c_c": "relu6", "d": "/a/b=c/d"},
          hparams.values(),
      )
      self.assertEqual(12, hparams.aaa)
      self.assertEqual(2.0, hparams.b)
      self.assertEqual("relu6", hparams.c_c)
      self.assertEqual("/a/b=c/d", hparams.d)
      hparams.parse("c_c=relu4, b=-2.0e10")
      self.assertDictEqual(
          {"aaa": 12, "b": -2.0e10, "c_c": "relu4", "d": "/a/b=c/d"},
          hparams.values(),
      )
      self.assertEqual(12, hparams.aaa)
      self.assertEqual(-2.0e10, hparams.b)
      self.assertEqual("relu4", hparams.c_c)
      self.assertEqual("/a/b=c/d", hparams.d)
      hparams.parse("c_c=,b=0,")
      self.assertDictEqual(
          {"aaa": 12, "b": 0, "c_c": "", "d": "/a/b=c/d"},
          hparams.values(),
      )
      self.assertEqual(12, hparams.aaa)
      self.assertEqual(0.0, hparams.b)
      self.assertEqual("", hparams.c_c)
      self.assertEqual("/a/b=c/d", hparams.d)
      hparams.parse('c_c=2.3",b=+2,')
      self.assertEqual(2.0, hparams.b)
      self.assertEqual('2.3"', hparams.c_c)
      hparams.parse("d=/a/b/c/d,aaa=11,")
      self.assertEqual(11, hparams.aaa)
      self.assertEqual(2.0, hparams.b)
      self.assertEqual('2.3"', hparams.c_c)
      self.assertEqual("/a/b/c/d", hparams.d)
      hparams.parse("b=1.5,d=/a=b/c/d,aaa=10,")
      self.assertEqual(10, hparams.aaa)
      self.assertEqual(1.5, hparams.b)
      self.assertEqual('2.3"', hparams.c_c)
      self.assertEqual("/a=b/c/d", hparams.d)
      with self.assertRaisesRegexp(
          ValueError, "Unknown hyperparameter"
      ):
          hparams.parse("x=123")
      with self.assertRaisesRegexp(ValueError, "Could not parse"):
          hparams.parse("aaa=poipoi")
      with self.assertRaisesRegexp(ValueError, "Could not parse"):
          hparams.parse("aaa=1.0")
      with self.assertRaisesRegexp(ValueError, "Could not parse"):
          hparams.parse("b=12x")
      with self.assertRaisesRegexp(ValueError, "Could not parse"):
          hparams.parse("b=relu")
      with self.assertRaisesRegexp(ValueError, "Must not pass a list"):
          hparams.parse("aaa=[123]")
      self.assertEqual(10, hparams.aaa)
      self.assertEqual(1.5, hparams.b)
      self.assertEqual('2.3"', hparams.c_c)
      self.assertEqual("/a=b/c/d", hparams.d)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from tensor2tensor.utils import hparam
  import tensorflow.compat.v1
label_desc: Use image node_id 3 for calling the HParamsTest obj's underlying member method code with example usage: obj.testSomeValues() without return types