code: def update_dropout(hparams, dropout):
      """Updates dropout rate."""
      hparams.layer_prepostprocess_dropout = dropout
      hparams.attention_dropout = dropout
      hparams.relu_dropout = dropout
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from tensor2tensor.models import transformer
  from tensor2tensor.utils import registry
label_desc: Use image node_id 3 for calling a global function with example usage: update_dropout(hparams, dropout) without return types