code: def test_run(self):
      padder = TorchSequencePadder(pad_val=-1, ele_dtype=int, dtype=int)
      a = [[1, 2, 3], [3]]
      a = padder(a)
      shape = a.shape
      assert isinstance(a, torch.Tensor)
      assert tuple(shape) == (2, 3)
      b = torch.LongTensor([[1, 2, 3], [3, -1, -1]])
      assert (a == b).sum().item() == shape[0] * shape[1]
  
file_path: fastNLP/tests/core/collators/padders/test_torch_padder.py
imports: import numpy
  import pytest
  from fastNLP.core.collators.padders.torch_padder import TorchTensorPadder, TorchSequencePadder, TorchNumberPadder
  from fastNLP.core.collators.padders.exceptions import DtypeError
  from fastNLP.envs.imports import _NEED_IMPORT_TORCH
label_desc: Use image node_id 1 for calling the TestTorchSequencePadder obj's underlying member method code with example usage: obj.test_run() without return types