def METHOD_NAME(cls, obj, method):
    status = True
    if hasattr(obj, "get_children"):
        for child in obj.get_children():
            stat = MDSplusWidget.METHOD_NAME(child, method)
            status = status and stat
            if isinstance(child, MDSplusWidget):
                try:
                    child.__getattribute__(method)()
                except Exception:
                    traceback.print_exc()
                    print("MDSplusWidget error: %s" % (sys.exc_info(),))
                    status = False
    return status