This function is in LinkedList class . Inserts a new node after the given prev_node . This method is defined inside LinkedList class shown above
def insertAfter ( self , prev_node , new_data ) : NEW_LINE