Uncaught Syntax Error: Unexpected token 'return'

hello i got the problem of course 1 week 2 tf data and deployment. i have checked my code it’s similiar to lecture code. but i still got error message. anyone can help or maybe mentor in this course?

can this code be saved? because i cannot save this code in bracket there’s a message do not allow to make modifications. is it possible that my code has an error because it is not saved?