def METHOD_NAME(target, expected_impl):
    target = tvm.target.Target(target)
    dtype = "int8"
    data_shape = (1, 1, 1, 4)
    weight_shape = (1, 1, 4, 4)
    data_layout = "NHWC"
    kernel_layout = "HWIO"
    channels = 4
    kernel_size = (1, 1)
    out = relay.nn.conv2d(
        relay.var("data", shape=data_shape, dtype=dtype),
        relay.var("weight", shape=weight_shape, dtype=dtype),
        kernel_size=kernel_size,
        channels=channels,
        data_layout=data_layout,
        kernel_layout=kernel_layout,
        out_dtype=dtype,
    )
    with target:
        out = run_opt_pass(out, relay.transform.AlterOpLayout())
        impl, _ = relay.backend.te_compiler.select_implementation(
            out.op,
            out.attrs,
            [te.placeholder(data_shape, dtype), te.placeholder(weight_shape, dtype)],
            out.checked_type,
            target,
            use_autotvm=False,
        )
    assert impl.name == expected_impl