<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_attach_file_to_comments(user_info, recid):
 """Check if the user is authorized to attach a file to comments for given recid. This function does not check that user can view the comments or send comments. Returns the same type as acc_authorize_action """

    # First can we find an authorization for this case action, for
    # this collection?
    record_primary_collection = guess_primary_collection_of_a_record(recid)
    return acc_authorize_action(
        user_info,
        'attachcommentfile',
        authorized_if_no_roles=False,
        collection=record_primary_collection)