human
I wrote the below code

    d = get_postgres_connection(host, port)
    def create_database(connection):
        connection.autocommit = True
        cursor = connection.cursor()
        cursor.execute('CREATE    DATABASE    flockertest;')
        cursor.close()
        connection.close()
    d.addCallback(create_database)
    d.addCallback((lambda _: get_postgres_connection(host, port, u'flockertest')))
    def add_data(connection):
        cursor = connection.cursor()
        cursor.execute('CREATE    TABLE    testtable    (testcolumn    int);')
        cursor.execute('INSERT    INTO    testtable    (testcolumn)    VALUES    (123);')
        connection.commit()
        connection.close()
    d.addCallback(add_data)
    return d

What's a good function header?
 ... Here's a good function header?
assistant
#Here's a good function header.

def insert_data(test_case, host, port):