create a parser warning type:
```
class DtypeWarning(Warning): pass
```

call like this
```
warnings.warn(warning_message, DtypeWarning)
```
you may have to ```import warnings``` at the top