input: Write a function to delete a certain node from a linked list. The function should take the node to be deleted as an input and modify the linked list in place.
  
  ### Python program to delete a node from Linked List  
  
  class Node:  
      def __init__(self, data):  
          self.data = data  
          self.next = None  
  
  class LinkedList:  
      def __init__(self):  
          self.head = None
  
      def deleteNode(self, node):  
          temp = self.head  
          if (temp is not None):  
              if (temp == node):  
                  self.head = temp.next  
                  temp = None  
                  return  
          while(temp is not None):  
              if temp == node:  
                  break  
              prev = temp  
              temp = temp.next  
          if(temp == None):  
              return  
          prev.next = temp.next  
          temp = None  
  
  assert deleteNode(linked_list.head)==None
  assert deleteNode(linked_list.head.next)==None
  assert deleteNode(linked_list.head.next.next)==None
  assert deleteNode(None)==None
output: def deleteNode(self, node):  
      if node is None:
          return
      if node == self.head:
          self.head = node.next
          return
      current = self.head
      while current and current.next != node:
          current = current.next
      if current:
          current.next = node.next