docs: def train_model(model_folder):
      """Train the model in ``model_folder``."""
      os.chdir(model_folder)
      training = generate_training_command(model_folder)
      if training is None:
          return -1
      logging.info(training)
      os.chdir(model_folder)
      os.system(training)