code: def test_dropout_rescaling(self):
      inputs = np.ones((20, 500))
      layer = layers.Dropout(0.5, seed=1337)
      outputs = layer(inputs, training=True)
      outputs = backend.convert_to_numpy(outputs)
      self.assertAllClose(np.mean(outputs), 1.0, atol=0.02)
      self.assertAllClose(np.max(outputs), 2.0)
  
file_path: keras/keras/layers/regularization/dropout_test.py
imports: import numpy
  import pytest
  from keras import backend
  from keras import layers
  from keras import testing
label_desc: Use image node_id 2 for calling the DropoutTest obj's underlying member method code with example usage: obj.test_dropout_rescaling() without return types