code: def _sfdp_pattern_13(query, key, value, dropout_p):
      attn_weight = torch.bmm(query, key.transpose(1, 2)).softmax(
          dim=-1
      )
      attn_weight = torch.nn.functional.dropout(
          attn_weight, p=dropout_p
      )
      return torch.bmm(attn_weight, value)
  
imports: import functools
  import inspect
  import logging
  import math
  import torch
  from ..._dynamo.utils import counters
  from ..pattern_matcher import filter_nodes, fwd_only, joint_fwd_bwd, register_replacement
label_desc: Use image node_id 25 for calling a global function with example usage: _sfdp_pattern_13(query, key, value, dropout_p) and returns: torch