def METHOD_NAME(use_block_name):
    func = element_wise
    sch = tir.Schedule(func, debug_mask='all')
    with pytest.raises(tvm.tir.ScheduleError):
        sch.unsafe_set_dtype('C' if use_block_name else sch.get_block("C"), 0, "float16")