Remove no-op import

`warnings` imported at the top, so no need for the local import.