code: def copy_update(hparams, **kwargs):
      """Deep copy hparams with values updated by kwargs.
  
      This enables to use hparams in an immutable manner.
      Args:
        hparams: hyperparameters.
        **kwargs: keyword arguments to change in hparams.
  
      Returns:
        updated hyperparameters object. Change in this object is not propagated to
        the original hparams
      """
      values = hparams.values()
      values.update(kwargs)
      values = copy.deepcopy(values)
      hp = tf.contrib.training.HParams(**values)
      return hp
  
imports: from __future__ import absolute_import
  from __future__ import division
  import copy
  import tensorflow.compat.v1
label_desc: Use image node_id 2 for calling a global function with example usage: copy_update(hparams) and returns: hp