human
I wrote the below code

    d = get_mongo_client(host, port)
    def got_client(client):
        database = client.example
        database.posts.insert({u'the    data': u'it    moves'})
    d.addCallback(got_client)
    return d

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

def insert_data(test_case, host, port):