input: Write a function to detect outliers in a dataset using numpy.
  assert detect_outliers([6, 7, 8, 10, 8, 8, 9, 11, 12, 15]) == [15]
  assert detect_outliers([1, 2, 3, 4, 100, 101, 102]) == [100, 101, 102]
  assert detect_outliers([10, 12, 14, 16, 18, 20, 1000]) == [1000]
output: import numpy as np
  
  def detect_outliers(data):
      data = np.array(data)
      mean = np.mean(data)
      std_dev = np.std(data)
      threshold = 3
      outliers = [x for x in data if abs(x - mean) > threshold * std_dev]
      return outliers