code: def test_spatial_dropout_3D_correctness(self):
      if backend.config.image_data_format() == "channels_last":
          inputs = np.ones((10, 3, 3, 3, 10))
      else:
          inputs = np.ones((10, 10, 3, 3, 3))
      layer = layers.SpatialDropout3D(0.5)
      outputs = layer(inputs, training=True)
      if backend.config.image_data_format() == "channels_last":
          self.assertAllClose(
              outputs[:, 0, 0, 0, :], outputs[:, 1, 1, 1, :]
          )
      else:
          self.assertAllClose(
              outputs[:, :, 0, 0, 0], outputs[:, :, 1, 1, 1]
          )
  
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 9 for calling the SpatialDropoutTest obj's underlying member method code with example usage: obj.test_spatial_dropout_3D_correctness() without return types