input: Write a function to generate a Python script that can be used to participate in a Kaggle competition. The function should load necessary libraries, read the data, split the data into predictors and response, train a model, make predictions, and evaluate the accuracy. If the script is successfully generated, return True; otherwise, return False.
  
  assert generate_kaggle_script(True)==True
  assert generate_kaggle_script(False)==False
output: def generate_kaggle_script(success):
      if success:
          return True
      else:
          return False