human
Solve the following python programming problem given the following code:
def test_c_mixed() : 
    with warnings.catch_warnings (record = True) as w : 
        c = npr.randn (3, 2) 
        def fun(x) : 
            b = np.c_ [(x, c, x)] 
            return to_scalar (b) 
A = npr.randn (3, 2) 
        d_fun = (lambda x : to_scalar (grad (fun) (x))) 
        check_grads (fun, A) 
        check_grads (w, A) 

    
    

    Fix the buggy line: check_grads (w, A)
assistant
#Here is Python code to fix the buggy line: check_grads (w, A)
.

check_grads (d_fun, A)