def consecutive_duplicates(nums):
    from itertools import groupby
    
    return [key for key, group in groupby(nums)] 
def heap_queue_largest(nums,n):
  import heapq as hq
  
  largest_nums = hq.nlargest(n, nums)
  return largest_nums