input: Write a function to delete a certain element from a linked list. The function should take a node object as input and remove the node from the linked list.
  
  assert remove_node(linked_list.head, Node(3)) == True
  assert remove_node(linked_list.head, Node(1)) == True
  assert remove_node(linked_list.head, Node(5)) == True
  assert remove_node(linked_list.head, Node(7)) == False
  assert remove_node(None, Node(4)) == False
output: def remove_node(head, node):
      if not head:
          return False
      if head.val == node.val:
          head = head.next
          return True
      current = head
      while current.next:
          if current.next.val == node.val:
              current.next = current.next.next
              return True
          current = current.next
      return False