def METHOD_NAME(debug_option):
    """
    Check debug info is emitting to IR if NUMBA_DPEX_DEBUGINFO is set to 1
    """
    @dpex.func
    def func_sum(a, b):
        result = a + b
        return result
    def data_parallel_sum(a, b, c):
        i = dpex.get_global_id(0)
        c[i] = func_sum(a[i], b[i])
    ir_tags = [
        r'\!DISubprogram\(name: ".*func_sum\$?\d*"',
        r'\!DISubprogram\(name: ".*data_parallel_sum\$\d*"',
    ]
    sig = (f32arrty, f32arrty, f32arrty)
    with override_config("DEBUGINFO_DEFAULT", int(debug_option)):
        kernel_ir = get_kernel_ir(data_parallel_sum, sig)
    for tag in ir_tags:
        assert debug_option == make_check(kernel_ir, tag)