human
Can you show me a Python program to return an index of list duplicates.
assistant
Here is a Python program to return an index of list duplicates

import random

def _get_duplicates_index(list_):
    """
    Returns the index of the duplicates in a list.
    :param list_:
    :return:
    """
    return [i for i, x in enumerate(list_) if x in list_[:i]]

# Enter the list
list1 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

# Calling the function
print((_get_duplicates_index(list1)))

#Example Output
# []

#Remember to inspect code for bugs.