input: Write a python function to delete a node from a linked list.
  assert llist.deleteNode(llist.head) is None
  assert llist.deleteNode(None) is None
  assert llist.deleteNode(Node(5)) is None
output: class Node:
      def __init__(self, data):
          self.data = data
          self.next = None
  
  class LinkedList:
      def __init__(self):
          self.head = None
      
      def deleteNode(self, node):
          if self.head is None or node is None:
              return None
          
          # If the node to be deleted is the head node
          if self.head == node:
              self.head = self.head.next
              node = None
              return
          
          # Search for the node to be deleted
          prev = None
          temp = self.head
          while temp is not None and temp != node:
              prev = temp
              temp = temp.next
          
          # If the node was not found
          if temp is None:
              return None
          
          # Unlink the node from the linked list
          prev.next = temp.next
          temp = None