def save_data(self):
state = "<STR_LIT>"<EOL>try:<EOL><INDENT>state = "<STR_LIT>"<EOL>log.info("<STR_LIT>")<EOL>self.create_json_archive()<EOL>state = "<STR_LIT>"<EOL>log.info("<STR_LIT>")<EOL>self.build_all_keys_dict()<EOL>state = "<STR_LIT>"<EOL>log.info("<STR_LIT>")<EOL>self.flatten_all()<EOL>state = "<STR_LIT>"<EOL>log.info("<STR_LIT>")<EOL>self.convert_to_df()<EOL>state = "<STR_LIT>"<EOL>log.info("<STR_LIT>")<EOL>self.save_df_as_csv()<EOL>if ANTINEX_PUBLISH_ENABLED:<EOL><INDENT>log.info(("<STR_LIT>")<EOL>.format(<EOL>ANTINEX_URL))<EOL>self.publish_predictions_to_core()<EOL><DEDENT><DEDENT>except Exception as e:<EOL><INDENT>log.error(("<STR_LIT>"<EOL>"<STR_LIT>")<EOL>.format(state,<EOL>e,<EOL>self.save_to_file))<EOL><DEDENT>
save_data