code: def test_attention_with_mask(self):
      layer = layers.AdditiveAttention(use_scale=False)
      query = np.array([[[1.0, 0.0], [0.0, 1.0]]])
      value = np.array([[[1.0, 1.0], [1.0, 1.0]]])
      query_mask = np.array([[True, False]])
      value_mask = np.array([[True, False]])
      output, scores = layer(
          [query, value],
          mask=[query_mask, value_mask],
          return_attention_scores=True,
      )
      self.assertAllClose(output, [[[1.0, 1.0], [0.0, 0.0]]])
      self.assertAllClose(scores, [[[1.0, 0.0], [1.0, 0.0]]])
  
file_path: keras/keras/layers/attention/additive_attention_test.py
imports: import numpy
  from keras import layers
  from keras import testing
label_desc: Use image node_id 3 for calling the AdditiveAttentionTest obj's underlying member method code with example usage: obj.test_attention_with_mask() without return types