input: 
  def reverse_double_linked_list(input_list: DoubleLinkedList) -> DoubleLinkedList:
      """Reverses a given doubly linked list in place.
      >>> from test_data import list1, list2
      >>> reverse_double_linked_list(list1)
      <DoubleLinkedList object at 0x...>  # Reversed list1
      >>> reverse_double_linked_list(list2)
      <DoubleLinkedList object at 0x...>  # Reversed list2
      """
  
output:     current = input_list.head
      input_list.head = input_list.tail
      input_list.tail = current
      
      while current is not None:
          next_node = current.next
          current.next = current.prev
          current.prev = next_node
          current = next_node
      
      return input_list