<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def experiments_predictions_update_state_error(self, experiment_id, run_id, errors):
 """Update state of given prediction to failed. Set error messages that where generated by the failed run execution. Parameters experiment_id : string Unique experiment identifier run_id : string Unique model run identifier errors : List(string) List of error messages Returns ------- ModelRunHandle Handle for updated model run or None is prediction is undefined """

        # Get prediction to ensure that it exists
        model_run = self.experiments_predictions_get(experiment_id, run_id)
        if model_run is None:
            return None
        # Update predition state
        return self.predictions.update_state(
            run_id,
            modelrun.ModelRunFailed(errors)
        )