code: def copy_hparams(hparams):
      """Return a copy of an HParams instance."""
      return contrib_training.HParams(**hparams.values())
  
file_path: magenta/magenta/models/sketch_rnn/model.py
imports: import random
  from magenta.contrib import training
  from magenta.models.sketch_rnn import rnn
  import numpy
  import tensorflow.compat.v1
label_desc: Use image node_id 1 for calling a global function with example usage: copy_hparams(hparams) and returns: contrib_training