Given a dataset, how would you identify anomalies or outliers?
Implement an IQR-based solution for a non-empty list of numeric values. Return the original indices of values below Q1 - 1.5 * IQR or above Q3 + 1.5 * IQR, in ascending index order. Use the median-of-halves method for quartiles, excluding the overall median when the dataset length is odd.
def identify_outliers(values):