With appropriate imports it is. (`import warnings`)