def METHOD_NAME():
    vdevices = [
        VDevice("llvm"),
        VDevice("cuda", 0),
        VDevice("metal", 0, "global"),
        VDevice("cuda -arch=sm_80", 0),
        VDevice("metal", 1, "global"),
        VDevice("llvm", 1),
    ]
    @I.ir_module
    class Input1:
        I.module_attrs({"attr": 10})
        I.module_global_infos(
            {
                "vdevice": [
                    I.vdevice("llvm"),
                    I.vdevice("cuda", 0),
                    I.vdevice("metal", 0, "global"),
                    I.vdevice("cuda -arch=sm_80", 0),
                ]
            }
        )
        @R.function
        def main(
            a: R.Tensor((128, 128), "float32", "cuda:1"),  # noqa: F722
            c: R.Tensor((128, 128), "float32", "vdevice:3"),  # noqa: F722
        ) -> R.Tensor((128, 128), "float32"):
            s = R.add(a, c)
            return s
    @I.ir_module
    class Expect1:
        I.module_attrs({"attr": 10})
        I.module_global_infos(
            {
                "vdevice": [
                    I.vdevice("llvm"),
                    I.vdevice("cuda", 0),
                    I.vdevice("metal", 0, "global"),
                    I.vdevice("metal", 1, "global"),
                ]
            }
        )
        @R.function
        def main(
            a: R.Tensor((128, 128), dtype="float32", vdevice="metal:1"),  # noqa: F722
            c: R.Tensor((128, 128), dtype="float32", vdevice="metal:1"),  # noqa: F722
        ) -> R.Tensor((128, 128), dtype="float32", vdevice="metal:1"):  # noqa: F722
            s: R.Tensor((128, 128), dtype="float32", vdevice="metal:1") = R.add(a, c)  # noqa: F722
            return s
    @I.ir_module
    class Input2:
        I.module_attrs({"attr": 10})
        I.module_global_infos(
            {
                "vdevice": [
                    I.vdevice("llvm"),
                    I.vdevice("cuda", 0),
                ]
            }
        )
        @R.function
        def main(
            a: R.Tensor((128, 128), "float32", "cuda:0"),  # noqa: F722
            c: R.Tensor((128, 128), "float32", "cuda:0"),  # noqa: F722
        ) -> R.Tensor((128, 128), "float32"):
            s = R.add(a, c)
            return s
    @I.ir_module
    class Expect2:
        I.module_attrs({"attr": 10})
        I.module_global_infos(
            {
                "vdevice": [
                    I.vdevice("llvm"),
                    I.vdevice("llvm", 1),
                ]
            }
        )
        @R.function
        def main(
            a: R.Tensor((128, 128), "float32", "llvm:1"),  # noqa: F722
            c: R.Tensor((128, 128), "float32", "llvm:1"),  # noqa: F722
        ) -> R.Tensor((128, 128), "float32", "llvm:1"):  # noqa: F722
            s: R.Tensor((128, 128), "float32", "llvm:1") = R.add(a, c)  # noqa: F722
            return s
    verify(Input1, vdevices[4], 3, Expect1)
    verify(Input2, vdevices[5], 1, Expect2)