Created by: kexinzhao
This pr mainly address the comments on #7690 that for load() function, we need to return a unique_ptr of program desc.