
    Write a function that identifies the number of reciprocal peer review arrangements in a student assessment system, where each arrangement is represented as a pair of student IDs. A reciprocal arrangement occurs when two students are assigned to review each other's work, meaning both (student1, student2) and (student2, student1) exist in the assignment list.
    

    
def count_bidirectional(test_list):
    """
    Write a function that identifies the number of reciprocal peer review arrangements in a student assessment system, where each arrangement is represented as a pair of student IDs. A reciprocal arrangement occurs when two students are assigned to review each other's work, meaning both (student1, student2) and (student2, student1) exist in the assignment list.
    

    """
def count_bidirectional(test_list):
    """
    Write a function that identifies the number of reciprocal peer review arrangements in a student assessment system, where each arrangement is represented as a pair of student IDs. A reciprocal arrangement occurs when two students are assigned to review each other's work, meaning both (student1, student2) and (student2, student1) exist in the assignment list.
    

    """
    res = 0
    for idx in range(0, len(test_list)):
        for iidx in range(idx + 1, len(test_list)):
            if test_list[iidx][0] == test_list[idx][1] and test_list[idx][1] == test_list[iidx][0]:
                res += 1
    return res