get code string from an function