code: def test_attention_with_dropout(self):
      query = np.array([[[1.0, 0.0], [0.0, 1.0]]])
      value = np.array([[[1.0, 1.0], [1.0, 1.0]]])
      layer_with_dropout = layers.Attention(dropout=0.2)
      layer_without_dropout = layers.Attention()
  
      output1, scores1 = layer_with_dropout(
          [query, value], return_attention_scores=True, training=True
      )
      output2, scores2 = layer_without_dropout(
          [query, value], return_attention_scores=True, training=True
      )
      self.assertNotAllClose(output1, output2)
      self.assertNotAllClose(scores1, scores2)
  
file_path: keras/keras/layers/attention/attention_test.py
imports: import numpy
  from keras import layers
  from keras import testing
label_desc: Use image node_id 5 for calling the AttentionTest obj's underlying member method code with example usage: obj.test_attention_with_dropout() without return types