code: def test_dtype_check(self):
      padder = PaddleSequencePadder(
          ele_dtype=np.zeros(3, dtype=np.int32).dtype,
          dtype=int,
          pad_val=-1,
      )
      with pytest.raises(DtypeError):
          padder = PaddleSequencePadder(
              ele_dtype=str, dtype=int, pad_val=-1
          )
      padder = PaddleSequencePadder(
          ele_dtype="int64", dtype=int, pad_val=-1
      )
      padder = PaddleSequencePadder(
          ele_dtype=np.int32, dtype=None, pad_val=-1
      )
      a = padder([[1], [2, 322]])
      # assert (a>67).sum()==0  # 因为int8的范围为-67 - 66
      padder = PaddleSequencePadder(
          ele_dtype=np.zeros(2).dtype, dtype=None, pad_val=-1
      )
  
file_path: fastNLP/tests/core/collators/padders/test_paddle_padder.py
imports: import numpy
  import pytest
  from fastNLP.core.collators.padders.paddle_padder import PaddleTensorPadder, PaddleSequencePadder, PaddleNumberPadder
  from fastNLP.core.collators.padders.exceptions import DtypeError
  from fastNLP.envs.imports import _NEED_IMPORT_PADDLE
label_desc: Use image node_id 2 for calling the TestPaddleSequencePadder obj's underlying member method code with example usage: obj.test_dtype_check() without return types