code: def testWithPeriodInVariableName(self):
      hparams = hparam.HParams()
      hparams.add_hparam(name="a.b", value=0.0)
      hparams.parse("a.b=1.0")
      self.assertEqual(1.0, getattr(hparams, "a.b"))
      hparams.add_hparam(name="c.d", value=0.0)
      with self.assertRaisesRegexp(ValueError, "Could not parse"):
          hparams.parse("c.d=abc")
      hparams.add_hparam(name="e.f", value="")
      hparams.parse("e.f=abc")
      self.assertEqual("abc", getattr(hparams, "e.f"))
      hparams.add_hparam(name="d..", value=0.0)
      hparams.parse("d..=10.0")
      self.assertEqual(10.0, getattr(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 4 for calling the HParamsTest obj's underlying member method code with example usage: obj.testWithPeriodInVariableName() without return types