def METHOD_NAME(stage):
    # auto inline requires the attach type is AttachType.kGroupRoot
    conds = [
        len(stage.relations) == 0,
        stage.attach_type == 1,
        stage.all_iter_vars == stage.leaf_iter_vars,
    ]
    if not all(conds):
        return True
    return False