code: def insert_multiple_records(self,
                                  table: str,
                                  fields: Sequence[str],
                                  records: Sequence[Sequence[Any]]) -> int:
          
          self.ensure_db_open()
          sql = self.localize_sql(get_sql_insert(table, fields,
                                                 self.get_delims()))
          log.debug("About to insert multiple records with SQL template: " + sql)
          try:
              cursor = self.db.cursor()
              debug_sql(sql, records)
              cursor.executemany(sql, records)
              # ... binds the placeholders (?, %s) to values in the process
              # http://www.python.org/dev/peps/pep-0249/
              log.debug("Records inserted.")
              return cursor.rowcount
          except:  # nopep8
              log.exception("insert_multiple_records: Failed to insert records.")
              raise
docs: Inserts a record into database, table "table", using the list of
          fieldnames and the list of records (each a list of values).
          Returns number of rows affected.