code: def test_spatial_dropout_2D_dynamic(self):
      inputs = layers.Input((3, 2, 4))
      layer = layers.SpatialDropout2D(0.5)
      layer(inputs, training=True)
  
file_path: keras/keras/layers/regularization/spatial_dropout_test.py
imports: import numpy
  import pytest
  from keras import backend
  from keras import layers
  from keras.testing import test_case
label_desc: Use image node_id 6 for calling the SpatialDropoutTest obj's underlying member method code with example usage: obj.test_spatial_dropout_2D_dynamic() without return types