code: def test_dropout_convenience_functions():
      from lasagne.layers.noise import (
          dropout_channels,
          spatial_dropout,
          dropout_locations,
      )
  
      assert dropout_channels((10, 20)).shared_axes == ()
      assert dropout_channels((None, None, None)).shared_axes == (2,)
      assert dropout_channels((1, 2, 3, 4)).shared_axes == (2, 3)
      assert dropout_channels((1, 2, 3, 4, 5, 6)).shared_axes == (
          2,
          3,
          4,
          5,
      )
      assert spatial_dropout((10, 20)).shared_axes == ()
      assert spatial_dropout((None, None, None)).shared_axes == (2,)
      assert spatial_dropout((1, 2, 3, 4)).shared_axes == (2, 3)
      assert spatial_dropout((1, 2, 3, 4, 5, 6)).shared_axes == (
          2,
          3,
          4,
          5,
      )
      assert dropout_locations((10, 20)).shared_axes == (1,)
      assert dropout_locations((None, None, None)).shared_axes == (1,)
      assert dropout_locations((1, 2, 3, 4)).shared_axes == (1,)
      assert dropout_locations((1, 2, 3, 4, 5, 6)).shared_axes == (1,)
  
imports: from mock import Mock
  import numpy
  import numpy
  from numpy.random import RandomState
  import theano
  import pytest
  from lasagne.random import get_rng, set_rng
label_desc: Use image node_id 1 for calling a global function with example usage: test_dropout_convenience_functions() without return types