code: def test_multihead_attention_block_dropout():
      x = torch.randn(2, 4, 8)
  
      block = MultiheadAttentionBlock(8, dropout=0.5)
      assert not torch.allclose(block(x, x), block(x, x))
  
imports: import torch
  from torch_geometric.nn.aggr.utils import InducedSetAttentionBlock, MultiheadAttentionBlock, PoolingByMultiheadAttention, SetAttentionBlock
label_desc: Use image node_id 2 for calling a global function with example usage: test_multihead_attention_block_dropout() without return types