All tests passed and grader gives 0 points

Hi @Hanyue

The error indicates that you probably have some cell (maybe for your own code testing) that produces this error (for example, you might have an incomplete if statement) anywhere in the notebook.
The tests do not have problem with that but the grader requires that ALL your cells in the notebook do not produce any error. This might be one probable cause for this.