def METHOD_NAME(model, log=None):
    if log is None:
        log = logger.log_proxy
    if not hasattr(model, "log"):
        model.run(limit=0)
    model.log = log
    for k, v in model.__dict__.items():
        if k[0] != "_" and k != "parent":
            if isinstance(v, Model) and v.parent is model:
                METHOD_NAME(v, getattr(log, k))