input: 
  def reverse_double_linked_list(double_linked_list: DoubleLinkedList) -> DoubleLinkedList:
      """ Reverses the given double linked list in place.
      >>> dll = DoubleLinkedList()
      >>> dll.append(1)
      >>> dll.append(2)
      >>> dll.append(3)
      >>> reverse_double_linked_list(dll)
      >>> print_list_forward(dll) # method to print the list forward
      [3, 2, 1]
      """
  
output:     current = double_linked_list.head
      double_linked_list.head = double_linked_list.tail
      double_linked_list.tail = current
      
      while current is not None:
          next_node = current.next
          current.next = current.prev
          current.prev = next_node
          current = next_node