(node_pos, sample, trees: List[HeteroFastDecisionTreeGuest])
return node_pos
in mix mode, a sample can reach leaf directly
in mix mode, a sample can reach leaf directly
in mix mode a sample can reach leaf directly
def traverse_guest_local_trees(node_pos, sample, trees: List[HeteroFastDecisionTreeGuest]):

        """
        in mix mode, a sample can reach leaf directly
        """

        for t_idx, tree in enumerate(trees):

            cur_node_idx = node_pos[t_idx]

            if not tree.use_guest_feat_only_predict_mode:
                continue

            rs, reach_leaf = HeteroSecureBoostingTreeGuest.traverse_a_tree(tree, sample, cur_node_idx)
            node_pos[t_idx] = rs

        return node_pos
def traverse_guest_local_trees ( node_pos , sample , trees : List [ HeteroFastDecisionTreeGuest ] ) : for t_idx , tree in enumerate ( trees ) : cur_node_idx = node_pos [ t_idx ] if not tree . use_guest_feat_only_predict_mode : continue rs , reach_leaf = HeteroSecureBoostingTreeGuest . traverse_a_tree ( tree , sample , cur_node_idx ) node_pos [ t_idx ] = rs return node_pos