Question: 
Write a function to check the occurrences of records which occur similar times in the given tuples.


Model's Code:
def check_occurences(tuples):
    from collections import defaultdict
    count = defaultdict(int)
    
    for a, b in tuples:
        count[(min(a, b), max(a, b))] += 1
    
    return {k: v for k, v in count.items() if v > 1}



Sample Correct Code:
from collections import Counter 
def check_occurences(test_list):
  res = dict(Counter(tuple(ele) for ele in map(sorted, test_list)))
  return  (res) 


Asserts:
assert check_occurences([(3, 1), (1, 3), (2, 5), (5, 2), (6, 3)] ) == {(1, 3): 2, (2, 5): 2, (3, 6): 1}
assert check_occurences([(4, 2), (2, 4), (3, 6), (6, 3), (7, 4)] ) == {(2, 4): 2, (3, 6): 2, (4, 7): 1}
assert check_occurences([(13, 2), (11, 23), (12, 25), (25, 12), (16, 23)] ) == {(2, 13): 1, (11, 23): 1, (12, 25): 2, (16, 23): 1}


Tests:
Test 1 of 3: FAIL: AssertionError()

Test 237 of 974: 171/237 (72.15189873417721%): failed