def METHOD_NAME():
    """
    Tests that an OpenMP map inside a parallel section ends up without an
    extra (semantically-incorrect) ``parallel`` statement.
    """
    @dace.program
    def tester(A: dace.float64[20]):
        for t in dace.map[0:1] @ dace.ScheduleType.CPU_Persistent:
            for i in dace.map[0:20] @ dace.ScheduleType.CPU_Multicore:
                A[i] += 1
    sdfg = tester.to_sdfg()
    code = sdfg.generate_code()[0].clean_code
    assert "#pragma omp parallel" in code
    assert "#pragma omp for" in code
    a = np.random.rand(20)
    ref = a + 1
    sdfg(a)
    assert np.allclose(a, ref)