def __init__(self, f, encoding='utf-8', **kwargs):
        self.encoding = encoding
        self._eight_bit = (EIGHT_BIT_ENCODINGS in self.encoding.lower().replace('_', '-'))

        if self._eight_bit:
            self.writer = csv.writer(f, **kwargs)
        else:
            # Redirect output to a queue for reencoding
            self.queue = six.StringIO()
            self.writer = csv.writer(self.queue, **kwargs)
            self.stream = f
            self.encoder = codecs.getincrementalencoder(encoding)()
dataset/ETHPy150Open wireservice/agate/agate/csv_py2.py/UnicodeWriter.__init__/swapped operands of `in`