code: def update_dropout(self, dropout, attention_dropout):
      self.self_attn.update_dropout(attention_dropout)
      self.feed_forward.update_dropout(dropout)
      self.dropout.p = 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 3 for calling the TransformerDecoderLayerBase obj's underlying member method code with example usage: obj.update_dropout(dropout, attention_dropout) without return types