As his friend he asked you for writing a program which takes a numpy array of ids as an input returns a numpy array of same length in which the first occurence of each id is replaced by False (implying that these are not duplicates) and the repetitions are replaced by True.
You won't leave your friend hanging. So try to help him here.
number of test cases
space separated integers as the elements of the array for each test case in a new line
simply printed numpy array of True,False for each test case in a new line
0 0 3 0 2 4 2 2 2 2
[False True False True False False True True True True]
Note: Here the numpy array is simply printed without any formatting and the code for taking input is already written.
Here you are expected to use numpy functions especially np.unique(), try to search about their use and do use them in the question.
Try to write a compact code using numpy builtin functions and try to explore their usage in different scenarios.