Create Defining_Generator_Functions_with_Extra_State.py