def __init__(self, function, errors):
assert isinstance(errors, int) or errors in (<EOL>'<STR_LIT>', '<STR_LIT:ignore>', '<STR_LIT>')<EOL>self.function = function<EOL>self.errors = errors<EOL>self.error_count = <NUM_LIT:0><EOL>
:param function: the function to wrap
:param errors: either a number, indicating how many errors to report
   before ignoring them, or one of these strings:
   'raise', meaning to raise an exception
   'ignore', meaning to ignore all errors
   'report', meaning to report all errors