def check_arg(self, arg, ignored, exception):
        try:
            np.dtype(arg)
        except __HOLE__:
            raise exception("%s:%d %s must be a valid dtype"
                            % (self.file, self.line, arg))
dataset/ETHPy150Open OP2/PyOP2/pyop2/utils.py/validate_dtype.check_arg