input: Write a function to create a naive bayes classifier using Python to classify emails as spam or not spam. The function should return the model after training and predicting using the given data.
  
  
  def train_and_predict_naive_bayes(X_train, y_train, X_test):
      from sklearn.naive_bayes import GaussianNB
      model = GaussianNB()
      model.fit(X_train, y_train)
      y_pred = model.predict(X_test)
      return model, y_pred
  
  # assert to test the function
  assert train_and_predict_naive_bayes(X_train, y_train, X_test) == (model, [0, 1, 0, 1])
  
output: def train_and_predict_naive_bayes(X_train, y_train, X_test):
      from sklearn.naive_bayes import GaussianNB
      model = GaussianNB()
      model.fit(X_train, y_train)
      y_pred = model.predict(X_test)
      return model, y_pred