Created by: chenwhql
The save load series APIs under io.py only support running in static mode, but users may mistakenly use them in dygraph mode. Errors reported at this time may not be convenient for debugging, so this PR adds error hint for these APIs to be used in dygraph mode.
load_inference_model
error case: