input: Write a python function to predict the most likely outcome for each test sample in a given list.
  assert predict([[0.1, 0.9], [0.8, 0.2], [0.4, 0.6]]) == [1, 0, 1]
  assert predict([[0.3, 0.7], [0.6, 0.4], [0.9, 0.1]]) == [1, 0, 0]
  assert predict([[0.5, 0.5], [0.2, 0.8], [0.7, 0.3]]) == [1, 1, 0]
output: def predict(samples):
      return [sample.index(max(sample)) for sample in samples]