I tried existing questions in the forum and i was not able to figure out how I can convert this below code using create_function. When I run the application I get a deprecated e