<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def save_to_file(self, file_path, labels=None, predict_proba=True, show_predicted_value=True, **kwargs):
 """Saves html explanation to file. . Params: file_path: file to save explanations to See as_html() for additional parameters. """

        file_ = open(file_path, 'w', encoding='utf8')
        file_.write(self.as_html(labels=labels,
                                 predict_proba=predict_proba,
                                 show_predicted_value=show_predicted_value,
                                 **kwargs))
        file_.close()