code: def test_unsupported_class():
      """Test that the decorator doesn't work if applied
      to a non-Layer subclass
      """
  
      class Foo:
          @Layer.accumulates
          def bprop(self):
              pass
  
      layer = Foo()
  
      with pytest.raises(TypeError):
          layer.bprop()
  
imports: from utils import tensors_allclose, allclose_with_out
  import numpy
  import pytest
  from neon import NervanaObject
  from neon.initializers.initializer import Uniform
  from neon.layers.layer import Convolution, Deconvolution, Layer, Linear, Bias, BatchNorm
  from neon.layers.container import Sequential
label_desc: Use image node_id 8 for calling a global function with example usage: test_unsupported_class() without return types