def get_flattened_size(self):
        size = 0
        for key in self.list_vars():
            size += flattened_size(key, getattr(self, key), scope=self)
        return size
Registers a review UI class.
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/vartree.py/VariableTree.get_flattened_size--crossover with--dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/reviews/ui/base.py/register_ui