dot-check_generation_time_valid function

Check if the generation_time argument is specified as a function