human
Solve the following python programming problem given the following code:
def _wrap_jac(jac, xdata, weights) : 
    if (jac_wrapped is None) : 
        def jac_wrapped(params) : 
            return jac (xdata, * params) 
else : 
        def jac_wrapped(params) : 
            return (weights [:, np.newaxis] * np.asarray (jac (xdata, * params))) 
return jac_wrapped 

    
    

    Fix the buggy line: if (jac_wrapped is None) :
assistant
#Here is Python program to fix the buggy line: if (jac_wrapped is None) :
.

if (weights is None) :