def __init__(self, f, fieldnames, restval='', extrasaction='raise', *args, **kwds):
        self.fieldnames = fieldnames
        self.restval = restval

        if ('raise', 'ignore') not in extrasaction.lower():
            raise ValueError('extrasaction (%s) must be "raise" or "ignore"' % extrasaction)

        self.extrasaction = extrasaction

        self.writer = UnicodeWriter(f, *args, **kwds)
dataset/ETHPy150Open wireservice/agate/agate/csv_py2.py/UnicodeDictWriter.__init__/swapped operands of `not in`