code: def testSetFromMap(self):
      hparams = hparam.HParams(a=1, b=2.0, c="tanh")
      hparams.override_from_dict({"a": -2, "c": "identity"})
      self.assertDictEqual(
          {"a": -2, "c": "identity", "b": 2.0}, hparams.values()
      )
  
      hparams = hparam.HParams(x=1, b=2.0, d=[0.5])
      hparams.override_from_dict({"d": [0.1, 0.2, 0.3]})
      self.assertDictEqual(
          {"d": [0.1, 0.2, 0.3], "x": 1, "b": 2.0}, hparams.values()
      )
  
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 5 for calling the HParamsTest obj's underlying member method code with example usage: obj.testSetFromMap() without return types