input: Write a function to delete a specified node from a linked list. The function should take the node to be deleted as an input parameter. If the node is deleted successfully, the function should allow the linked list to be traversed correctly without the deleted node. If the node is not found in the linked list, the function should do nothing.
  
  The linked list and node classes are defined as follows:
  
  
  class Node:
      def __init__(self, data):
          self.data = data
          self.next = None
  
  class LinkedList:
      def __init__(self):
          self.head = None
      def deleteNode(self, node):
  
  
  assert deleteNode(node) deletes the specified node from the linked list and allows the linked list to be traversed correctly without the deleted node.
  
  assert deleteNode(node) does nothing if the node is not found in the linked list.
output: def deleteNode(self, node):
      if node is None or node.next is None:
          return
      node.data = node.next.data
      node.next = node.next.next