human
I wrote the below code

    def generate_foreign_key_lambda(value):
        if key_is_id:
            value = int(value)
        return datastore.Key.from_path(kind, value)
    return generate_foreign_key_lambda

What's a good function header?

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

def create_foreign_key(kind, key_is_id=False):