def write_event(self, content, mode):
        self.content = content
        self.mode = mode
        self.file_path = self.config.FrameworkConfigGet('PNH_EVENTS_FILE')

        if (os.path.isfile(self.file_path) and os.access(self.file_path, os.W_OK)):
            try:
                with FileOperations.open(self.file_path, self.mode, owtf_clean=False) as log_file:
                    log_file.write(self.content)
                    log_file.write("\n")
                return True
            except __HOLE__:
                return False
dataset/ETHPy150Open owtf/owtf/framework/core.py/Core.write_event