Restaurant365 interview question

How do you decide whether AI-generated code is useful or not?