[sgm] add build_utils method in sgm demo