code: def test_l1_regularization(self):
      weight = 2 * np.sign(np.random.random((10, 5)) - 0.5)
      network = layers.join(
          layers.Input(10),
          layers.Relu(5, weight=weight, bias=2),
      )
      regularizer = algorithms.l1(0.01)
  
      regularization_cost = self.eval(regularizer(network))
      self.assertAlmostEqual(regularization_cost, 1.0)
  
file_path: neupy/tests/algorithms/test_regularizers.py
imports: import numpy
  from neupy import algorithms, layers
  from base import BaseTestCase
  from helpers import simple_classification
label_desc: Use image node_id 1 for calling the L1RegularizationTestCase obj's underlying member method code with example usage: obj.test_l1_regularization() without return types