input: Write a function to develop a machine learning algorithm in Python to identify apples and bananas based on the given input features. The function should return the predicted labels for the provided test data.
  assert identify_fruit(X = np.array([[1,2,3], [-1,2,5], [-1,2,7], [5,5,5], [3,3,3], [5,5,7]]), y = np.array([0, 0, 0, 1, 0, 1]), x_test = np.array([[2,2,2], [4,4,4]]))==[0, 1]
output: def identify_fruit(X, y, x_test):
      from sklearn.tree import DecisionTreeClassifier
      model = DecisionTreeClassifier()
      model.fit(X, y)
      return model.predict(x_test).tolist()