Using an instance of errstate as a context manager allows statements in
that context to execute with a known error handling behavior. Upon entering
the context the error handling is set with seterr and seterrcall, and
upon exiting it is reset to what it was before.

Parameters:

kwargs : {divide, over, under, invalid}

Keyword arguments. The valid keywords are the possible floating-point
exceptions. Each keyword should have a string value that defines the
treatment for the particular error. Possible values are
{‘ignore’, ‘warn’, ‘raise’, ‘call’, ‘print’, ‘log’}.