code: def test_dtype_check(self):
      padder = OneflowTensorPadder(
          pad_val=-1,
          ele_dtype=np.zeros(3, dtype=np.int8).dtype,
          dtype=int,
      )
      with pytest.raises(DtypeError):
          padder = OneflowTensorPadder(
              pad_val=-1, ele_dtype=str, dtype=int
          )
      padder = OneflowTensorPadder(
          pad_val=-1, ele_dtype=oneflow.long, dtype=int
      )
      padder = OneflowTensorPadder(
          pad_val=-1, ele_dtype=int, dtype=oneflow.long
      )
  
file_path: fastNLP/tests/core/collators/padders/test_oneflow_padder.py
imports: import numpy
  import pytest
  from fastNLP.core.collators.padders.oneflow_padder import OneflowTensorPadder, OneflowSequencePadder, OneflowNumberPadder
  from fastNLP.core.collators.padders.exceptions import DtypeError
  from fastNLP.envs.imports import _NEED_IMPORT_ONEFLOW
label_desc: Use image node_id 2 for calling the TestOneflowTensorPadder obj's underlying member method code with example usage: obj.test_dtype_check() without return types