class_docstr: Replacement for tf.contrib.training.HParams.
  
  TODO(noam): remove this class and rewrite the methods in this file.
class_docstr_tok: ["Replacement","for","tf.contrib.training.HParams",".","TODO","(","noam",")",":","remove","this","class","and","rewrite","the","methods","in","this","file","."]
code: def add_hparam(self, k, v):
      setattr(self, k, v)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import gin
  import mesh_tensorflow
  from mesh_tensorflow.transformer import transformer
  import tensorflow.compat.v1
label_desc: Use image node_id 2 for calling the HParams obj's underlying member method code with example usage: obj.add_hparam(k, v) without return types