How would you implement a specific type of linked list?
Implement a doubly linked list supporting append, prepend, insert_after, delete, forward, and backward operations. Implement doubly_linked_list_operations(operations), returning one traversal result for each traversal operation. Values are integers. insert_after and delete affect the first matching value; missing values leave the list unchanged.
def doubly_linked_list_operations(operations):