human
I wrote the below code

    def create_mongo_client():
        try:
            client = MongoClient(host=host, port=port)
            client.areyoualive.posts.insert({'ping': 1})
            return client
        except PyMongoError:
            return False
    d = loop_until(reactor, create_mongo_client)
    return d

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

def get_mongo_client(host, port=27017):