code: def insert(conn, qualified_name: str, column_names, records):
      
  
      query = create_insert_statement(qualified_name, column_names)
  
      with conn:
          with conn.cursor(cursor_factory=NamedTupleCursor) as cursor:
              for record in records:
                  cursor.execute(query, record)
docs: Insert a collection of namedtuple records.