Week 1 Gradient Checking assignment , Gradient working fine but not passing all test cases

Can someone please help me figure out what possible error i am making, my gradient is working, outputs as well , yet not able to pass the assignment as it doesnt pass all the test cases , I cant figure out what the error is.
image

Hi @miralk

Please note that passing the tests doesn’t guarantee passing the grader because the grader may include hidden edge cases to ensure your code works universally. Try testing your code with a variety of edge cases and corner cases. Debugging with print statements and comparing your output with expected results for tricky inputs can be helpful, too.

Hope it helps! Feel free to ask if you need further assistance.

What is the detailed feedback from the grader? Please post a screen capture image.