def sort_counter(dict1):
 from collections import Counter
 
 x = Counter(dict1)
 sort_counter=x.most_common()
 return sort_counter
def heap_queue_largest(nums,n):
  import heapq as hq
  
  largest_nums = hq.nlargest(n, nums)
  return largest_nums