input: 
  def reverse_double_linked_list(linked_list: DoubleLinkedList) -> None:
      """ Reverses the direction of the given double linked list in place.
      >>> linked_list = DoubleLinkedList()
      >>> linked_list.append(1)
      >>> linked_list.append(2)
      >>> linked_list.append(3)
      >>> reverse_double_linked_list(linked_list)
      >>> linked_list.head.data
      3
      >>> linked_list.head.next.data
      2
      >>> linked_list.head.next.next.data
      1
      """
      linked_list.reverse()
  
output:     current = linked_list.head
      linked_list.head = linked_list.tail
      linked_list.tail = current
      
      while current:
          current.next, current.prev = current.prev, current.next
          current = current.prev