def isinstance(self, instance, class_name):
if isinstance(instance, BaseNode):<EOL><INDENT>klass = self.dynamic_node_classes.get(class_name, None)<EOL>if klass:<EOL><INDENT>return isinstance(instance, klass)<EOL><DEDENT>return False<EOL><DEDENT>else:<EOL><INDENT>raise TypeError("<STR_LIT>")<EOL><DEDENT>
Check if a BaseNode is an instance of a registered dynamic class