input: Write a function to delete a certain element from a linked list. The function should be named `deleteNode` and take one argument, `node`, which is the node to be deleted. If the node is present in the linked list, it should be removed, otherwise, the function should do nothing.
  
  
  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() == 
  assert deleteNode() == 
  assert deleteNode() == 
  assert deleteNode() == 
  assert deleteNode() == 
  
output: 
  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
  