code: def __init__(self, parameters, clip_type, clip_value):
      self.parameters = parameters
      self.clip_type = clip_type
      self.clip_value = clip_value
  
file_path: fastNLP/tests/core/callbacks/torch_callbacks/test_torch_grad_clip_callback.py
imports: import pytest
  import numpy
  from fastNLP.core.callbacks import TorchGradClipCallback, Callback
  from fastNLP import Trainer
  from fastNLP.envs.imports import _NEED_IMPORT_TORCH
  from tests.helpers.callbacks.prepare_trainer_args_for_torch_test import get_trainer_args
label_desc: Use image node_id 1 to create a new CheckClipCallback object from inherited base classes: Callback with example: obj = CheckClipCallback(parameters, clip_type, clip_value)