Choose caseid from input or from user input.
main_locals (dict) – locals() in main program, which include local variables
force_read (bool) – If True, force to read caseid from user input. If False, read caseid from main_locals if exists
caseid – caseid
str