code: def update_dropout(self, dropout, attention_dropout):
      self.embeddings.update_dropout(dropout)
      for layer in self.transformer_layers:
          layer.update_dropout(dropout, attention_dropout)
  
imports: import torch
  import torch.nn
  from onmt.decoders.decoder import DecoderBase
  from onmt.modules import MultiHeadedAttention, AverageAttention
  from onmt.modules.position_ffn import PositionwiseFeedForward
  from onmt.modules.position_ffn import ActivationFunction
  from onmt.modules.moe import MoE
  from onmt.utils.misc import sequence_mask
  from onmt.modules.rmsnorm import RMSNorm
label_desc: Use image node_id 7 for calling the TransformerDecoderBase obj's underlying member method code with example usage: obj.update_dropout(dropout, attention_dropout) without return types