code: def test_given_params(self, mock_clip):
      model = nn.Sequential(nn.Conv2d(3, 3, 3))
      model.parameters = Mock(return_value=[-1])
      state = {torchbearer.MODEL: model}
  
      clipper = GradientClipping(5, params=model.parameters())
  
      clipper.on_start(state)
      clipper.on_backward(state)
  
      self.assertTrue(mock_clip.mock_calls[0][1][0] == [-1])
  
file_path: torchbearer/tests/callbacks/test_gradient_clipping.py
imports: from unittest import TestCase
  from mock import patch, Mock
  import torchbearer
  from torchbearer.callbacks import GradientNormClipping, GradientClipping
  import torch.nn
label_desc: Use image node_id 2 for calling the TestGradientClipping obj's underlying member method code with example usage: obj.test_given_params(mock_clip) without return types