Error in C3_W3 in andrew ng course for unsupervised and reinforcement learning

the lab doesnt work i get a operatornotallowedingrapherror
in the last giant code block where it runs the agent
ive submitted the lab and my my code is correct and i got 100% but the lab doesnt run