def METHOD_NAME():
    pytest.importorskip("torch")
    prepare("drjit.cuda.ad")
    from drjit.cuda.ad import Float, Array3f
    a1 = Array3f(
        dr.arange(Float, 10),
        dr.arange(Float, 10)+100,
        dr.arange(Float, 10)+1000,
    )
    a2 = a1.torch()
    a3 = Array3f(a2)
    assert a1 == a3
    assert a1.x == Float(a1.x.torch())