Possible error in code assignement evaluation

Hello,
It seems that there is an error in the code assignment evaluation: “failed test case: output has wrong length when using top_k=3. expected: 3, but got: 5.”, but it is supposed to be 5, and the outcome was identical to the expected outcome was correct, with 5 items.
Thank you!

Perhaps you have hard coded some value in here!

please post screenshot of your output to expected output.

please make sure not to. post; any grade function codes as it is against community guidelines