human
Complete this python program:
def follow(func):
assistant
#Here is the Python code you requested.

    """Return a wrapper function for a follow_* function.
    The wrapper functions test the `followee_list` and `followee_count` API
    calls, in addition to any tests carried out by the wrapped function.
    """
    def wrapped_func(app, follower_id, apikey, object_id, object_arg, sysadmin_apikey):
        followee_count_before = call_action_api(app, 'followee_count', id=follower_id)
        followees_before = call_action_api(app, 'followee_list', id=follower_id, apikey=sysadmin_apikey)
        func(app, follower_id, apikey, object_id, object_arg, sysadmin_apikey)
        followee_count_after = call_action_api(app, 'followee_count', id=follower_id)
        followees_after = call_action_api(app, 'followee_list', id=follower_id, apikey=sysadmin_apikey)
        assert (followee_count_after == (followee_count_before + 1)), "After    a    user    follows    an    object,    the    user's    `followee_count`    should    increase    by    1"
        assert (len(followees_after) == (len(followees_before) + 1)), "After    a    user    follows    an    object,    the    object    should    appear    in    the    user's    `followee_list`"
        assert (len([followee for followee in followees_after if (followee['dict']['id'] == object_id)]) == 1), "After    a    user    follows    an    object,    the    object    should    appear    in    the    user's    `followee_list`"
    return wrapped_func