code: def merge_unscoped_hparams(scopes_and_hparams):
    
    merged_values = {}
    for (scope, hparams) in scopes_and_hparams:
      for key, value in six.iteritems(hparams.values()):
        scoped_key = "%s.%s" % (scope, key)
        merged_values[scoped_key] = value
  
    return hparam.HParams(**merged_values)
docs: Merge multiple HParams into one with scopes.