The example shader is exclusively written for the built in renderer. While the basic concepts shown are applicable to any renderer, making the shader work for the URP would require quite a bit of work as the URP and BIRP work completely different ways.