Complete in python 3
class Node: def -init–(self, “”Initialise a node with a given Label.””” pass # TODO label): def __str__(self): return self.pprint() def add_child (self, child): Add a child node to the current node *raises ValueError if child is None *raises TypeError if child is not a Node object. *raises ValueError if child is already a child of the current node *raises ValueError if child already has its parent set. pass # TODO def get_count(self): “Returns how many
OR
OR