input: 
  def formatted_linked_list(class_definition: str) -> str:
      """
      Given the class definition of a linked list in Python, create a formatted output that represents
      the creation and printing of the linked list with nodes containing integer values.
      >>> formatted_linked_list('class Node:\n    def __init__(self, data):\n        self.data = data\n        self.next = None\n\nclass LinkedList:\n    def __init__(self):\n        self.head = None\n    \n    def print_list(self):\n        node = self.head\n        while(node):\n            print(node.data)\n            node = node.next\n')
      '1\n2\n3\n'
      """
  
output:     class_code = class_definition.split('\n')
      node_class_end = class_code.index('class LinkedList:')
      node_class = '\n'.join(class_code[:node_class_end])
      linked_list_class = '\n'.join(class_code[node_class_end:])
  
      exec(node_class)
      exec(linked_list_class)
  
      llist = LinkedList()
      llist.head = Node(1)
      second = Node(2)
      third = Node(3)
      llist.head.next = second
      second.next = third
  
      output = []
      node = llist.head
      while node:
          output.append(str(node.data))
          node = node.next
  
      return '\n'.join(output) + '\n'