def METHOD_NAME(C):
    for i in range(-5, 5):
        for j in range(-5, 5):
            a = dr.sqrt(C(i, j))
            b = cmath.sqrt(complex(i, j))
            assert dr.allclose(a, C(b))
            assert dr.allclose(dr.conj(a), C(b.conjugate()))
            assert dr.allclose(dr.abs(a), C(abs(b)))
            if i != 0 and j != 0:
                a = dr.rsqrt(C(i, j))
                b = C(1 / cmath.sqrt(complex(i, j)))
                assert dr.allclose(a, b)