human
I wrote the below code

    def check_open(_user, content):
        '    Check    whether    the    content    is    open.    '
        try:
            return (content and (not content['closed']))
        except KeyError:
            return False
    def check_author(user, content):
        '    Check    if    the    given    user    is    the    author    of    the    content.    '
        try:
            return (content and (content['user_id'] == str(user.id)))
        except KeyError:
            return False
    def check_question_author(user, content):
        '    Check    if    the    given    user    is    the    author    of    the    original    question    for    both    threads    and    comments.    '
        if (not content):
            return False
        try:
            if (content['type'] == 'thread'):
                return ((content['thread_type'] == 'question') and (content['user_id'] == str(user.id)))
            else:
                return check_question_author(user, Thread(id=content['thread_id']).to_dict())
        except KeyError:
            return False
    def check_team_member(user, content):
        '\n                                If    the    content    has    a    commentable_id,    verifies    that    either    it    is    not    associated    with    a    team,\n                                or    if    it    is,    that    the    user    is    a    member    of    that    team.\n                                '
        if (not content):
            return False
        try:
            commentable_id = content['commentable_id']
            request_cache_dict = RequestCache.get_request_cache().data
            cache_key = u'django_comment_client.check_team_member.{}.{}'.format(user.id, commentable_id)
            if (cache_key in request_cache_dict):
                return request_cache_dict[cache_key]
            team = get_team(commentable_id)
            if (team is None):
                passes_condition = True
            else:
                passes_condition =...

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

def _check_condition(user, condition, content):