def one_hot(iintnint-np array"""implements one-hot encoding by selecting the ith standard basis vector""return np identity( )[ireshape(( - )def print_report(rewardslistepisodeint)"""print rewards report for current episode average for last episodes best -episode average across all time average for all episodes across time ""print(report np mean(rewards[- :])max([np mean(rewards[ : + ]for in range(len(rewards )])np mean(rewards)episode)def main()env gym make('frozenlake- 'env seed( rewards [create the game make results reproducible