Missing import:
```python
import warnings
```