code: def test_penalty(self, penalty):
      np_penalty = getattr(self, penalty)
      theano_penalty = getattr(lasagne.regularization, penalty)
  
      X = T.matrix()
      X0 = lasagne.utils.floatX(np.random.uniform(-3, 3, (10, 10)))
  
      theano_result = theano_penalty(X).eval({X: X0})
      np_result = np_penalty(X0)
  
      assert np.allclose(theano_result, np_result)
  
file_path: Lasagne/lasagne/tests/test_regularization.py
imports: import pytest
  import numpy
  import theano.tensor
  import lasagne
  from collections import OrderedDict
  from theano.scan_module.scan_utils import equal_computations
  from mock import Mock
label_desc: Use image node_id 3 for calling the TestRegularizationPenalties obj's underlying member method code with example usage: obj.test_penalty(penalty) without return types