def heuristics_v{version}(node_attr: np.ndarray, node_constraint: int) -> np.ndarray: