code: def is_numpy_generic_class(dtype):
      """
      形如 np.int64，或者 np.zeros(1).dtype.type 的值
  
      :param dtype:
      :return:
      """
      if isclass(dtype) and issubclass(dtype, np.generic):
          return True
      return False
  
file_path: fastNLP/fastNLP/core/collators/padders/utils.py
imports: from typing import Sequence, List
  import re
  from inspect import isclass
  import numpy
label_desc: Use image node_id 7 for calling a global function with example usage: is_numpy_generic_class(dtype) and returns: False, True