code: def test_L1(self, mock_wd):
      model = nn.Sequential(nn.Conv2d(3, 3, 3))
      model.parameters = Mock(return_value=-1)
      state = {torchbearer.MODEL: model, torchbearer.LOSS: 1}
  
      decay = L1WeightDecay()
      self.assertTrue(mock_wd.call_args[1]["p"] == 1)
  
file_path: torchbearer/tests/callbacks/test_weight_decay.py
imports: from unittest import TestCase
  import torch
  import torch.nn
  from mock import Mock, patch
  import torchbearer
  from torchbearer.callbacks import WeightDecay, L1WeightDecay, L2WeightDecay
label_desc: Use image node_id 6 for calling the TestWeightDecay obj's underlying member method code with example usage: obj.test_L1(mock_wd) without return types