code: def test_regularize_layer_params_single_layer(self, layers):
      from lasagne.regularization import regularize_layer_params
  
      l_1, l_2, l_3 = layers
  
      penalty = Mock(return_value=0)
      loss = regularize_layer_params(l_2, penalty)
  
      assert penalty.call_count == 1
      penalty.assert_any_call(l_2.W)
  
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 TestRegularizationHelpers obj's underlying member method code with example usage: obj.test_regularize_layer_params_single_layer(layers) without return types