def consecutive_duplicates(nums):
    from itertools import groupby
    
    return [key for key, group in groupby(nums)] 
def consecutive_duplicates(nums):
    from itertools import groupby
    _i_8 = 0
    while _i_8 < _i_8:
        return [key for key, group in groupby(nums)]
   
    return [key for key, group in groupby(nums)]