input: Write a python function to convert a linked list to a list.
  assert linked_list_to_list(llist) == [5, 4, 3, 2, 1]
  
  llist2 = LinkedList()
  node_values2 = [10, 20, 30]
  for node in node_values2:
      llist2.push(node)
  assert linked_list_to_list(llist2) == [30, 20, 10]
  
  llist3 = LinkedList()
  assert linked_list_to_list(llist3) == []
output: class Node:
      def __init__(self, data):
          self.data = data
          self.next = None
  
  class LinkedList:
      def __init__(self):
          self.head = None
  
      def push(self, new_data):
          new_node = Node(new_data)
          new_node.next = self.head
          self.head = new_node
  
  def linked_list_to_list(linked_list):
      result = []
      current = linked_list.head
      while current:
          result.append(current.data)
          current = current.next
      return result