code: def test_shape():
      from lasagne.init import Initializer
  
      # Assert that all `Initializer` sublasses return the shape that
      # we've asked for in `sample`:
      for klass in Initializer.__subclasses__():
          if len(klass.__subclasses__()):
              # check HeNormal, HeUniform, GlorotNormal, GlorotUniform
              for sub_klass in klass.__subclasses__():
                  assert sub_klass().sample((12, 23)).shape == (12, 23)
          else:
              assert klass().sample((12, 23)).shape == (12, 23)
  
imports: import pytest
label_desc: Use image node_id 2 for calling a global function with example usage: test_shape() without return types