def check_indentation_rules(self, children):
        depth_seen = None
        for child in children:
            # Ensure child is at correct depth
            # If this is disabled then depth.failure and inner_tag_indentation.failure will both succeed
            # It is dubious if we want this
            # Todo: Permissive mode
            if child.follows_indentation_rules and not PERMISSIVE:
                if depth_seen is None:
                    depth_seen = child.depth
                elif child.depth is not depth_seen:
                    raise NemoException('\nIncorrect indentation\n' + \
                                         'at:\n\t%s\n' % child + \
                                         'within:\n\t%s\n' % self + \
                                         'expected indentation of %d ' % depth_seen)

            yield child
dataset/ETHPy150Open KaySackey/Nemo/nemo/nodes.py/NemoNode.check_indentation_rules/original