def METHOD_NAME():
    hcl.init()
    rshape = (1,)
    def kernel():
        inst_id = hcl.scalar(2, "inst_id", dtype=hcl.UInt(16))
        inst_id_v = inst_id.v
        r = hcl.compute(rshape, lambda _: 0, dtype=hcl.UInt(32))
        with hcl.if_(inst_id_v == 0):
            r[0] = 1
        with hcl.if_(inst_id[0] == 1):
            r[0] = 2
        with hcl.elif_(inst_id_v == 2):
            r[0] = 3
        with hcl.else_():
            r[0] = 4
        return r
    s = hcl.create_schedule([], kernel)
    hcl_res = hcl.asarray(np.zeros(rshape, dtype=np.uint32), dtype=hcl.UInt(32))
    f = hcl.build(s)
    f(hcl_res)
    np_res = np.zeros(rshape, dtype=np.uint32)
    np_res[0] = 3
    assert np.array_equal(hcl_res.asnumpy(), np_res)