def extract_freq(test_list):
  
  res = len(list(set(tuple(sorted(sub)) for sub in test_list)))
  return (res)
def heap_queue_largest(nums,n):
  import heapq as hq
  
  largest_nums = hq.nlargest(n, nums)
  return largest_nums