add code example for partial_torus