input: Write a python function to convert a linked list to a list.
  assert convert_linked_list_to_list(None) == []
  assert convert_linked_list_to_list(Node(1)) == [1]
  ll = LinkedList()
  ll.insert(Node(1))
  ll.insert(Node(2))
  ll.insert(Node(3))
  assert convert_linked_list_to_list(ll.head) == [1, 2, 3]
output: class Node:
      def __init__(self, data):
          self.data = data
          self.next = None
  
  class LinkedList:
      def __init__(self):
          self.head = None
  
      def insert(self, new_node):
          if self.head is None:
              self.head = new_node
          else:
              last = self.head
              while last.next:
                  last = last.next
              last.next = new_node
  
  def convert_linked_list_to_list(head):
      result = []
      current = head
      while current:
          result.append(current.data)
          current = current.next
      return result