<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def check_user_can_view_comment(user_info, comid, restriction=None):
 """Check if the user is authorized to view a particular comment, given the comment restriction. Note that this function does not check if the record itself is restricted to the user, which would mean that the user should not see the comment. You can omit 'comid' if you already know the 'restriction' :param user_info: the user info object :param comid: the comment id of that we want to check :param restriction: the restriction applied to given comment (if known. Otherwise retrieved automatically) :return: the same type as acc_authorize_action """

    if restriction is None:
        comment = query_get_comment(comid)
        if comment:
            restriction = comment[11]
        else:
            return (1, 'Comment %i does not exist' % comid)
    if restriction == "":
        return (0, '')
    return acc_authorize_action(
        user_info, 'viewrestrcomment', status=restriction)