Implement a function to compare two versions of a test result log and identify added, removed, and changed entries.
Use def compare_logs(old_log, new_log):, where each log is a list of dictionaries with a unique id and a result value. Return a dictionary with added, removed, and changed lists. Preserve each log's input order. Added and removed lists contain complete entries. Each changed item contains id, before, and after entries. Treat an entry as changed when its result differs.
def compare_logs(old_log, new_log):