def __init__(self, bulk_insert=1000, **kwargs):
        try:
            mysql = __import__('MySQLdb')
            filterwarnings('ignore', category=mysql.Warning)
            self.to_buffer = lambda buf: buf
        except __HOLE__:
            try:
                mysql = __import__('pymysql')
                self.to_buffer = str  # pylint: disable=redefined-variable-type
            except ImportError:
                raise ImportError('The mysql-python or pymysql library '
                                  'is required')
        self.db = mysql.connect(**kwargs)
        self.bulk_insert = bulk_insert
        self.cursor = self.db.cursor()
dataset/ETHPy150Open chriso/gauged/gauged/drivers/mysql.py/MySQLDriver.__init__