In python, it is possible to change the way warnings are handled by working with the Warnings Filter. For example, one can add a filter specification to the warnings filter by calling warnings.simplefilter, by working with the PYTHONWARNINGS environment variable, or by using the -W command-line flag.
How can I inspect the current state of the warnings filter to see what warnings will be filtered, turned into error messages, etc?