Given an array of system metrics, write a utility to identify performance anomalies within a specific time window.
Represent each metric as [timestamp, value]. Implement identify_anomalies(metrics, start_time, end_time, threshold) using an inclusive time window. Within that window, calculate the population mean and standard deviation, and return the original indices whose values differ from the mean by more than threshold * standard_deviation. Return an empty list when the window contains no metrics or all selected values are identical.
def identify_anomalies(metrics, start_time, end_time, threshold):