def METHOD_NAME():
    sdfg = arrayop.to_sdfg(simplify=True)
    mapnode = None
    for node, _ in sdfg.all_nodes_recursive():
        if isinstance(node, nodes.EntryNode):
            assert (isinstance(node, nodes.MapEntry))
            mapnode = node.map
            break
    mapnode.schedule = dtypes.ScheduleType.CPU_Multicore
    json = sdfg.to_json()
    assert (key_exists(json, 'omp_num_threads'))
    assert (key_exists(json, 'omp_schedule'))
    assert (key_exists(json, 'omp_chunk_size'))
    code = sdfg.generate_code()[0].clean_code
    assert ("#pragma omp parallel for" in code)
    mapnode.omp_num_threads = 10
    code = sdfg.generate_code()[0].clean_code
    assert ("#pragma omp parallel for num_threads(10)" in code)
    mapnode.omp_schedule = dtypes.OMPScheduleType.Guided
    code = sdfg.generate_code()[0].clean_code
    assert ("#pragma omp parallel for schedule(guided) num_threads(10)" in code)
    mapnode.omp_chunk_size = 5
    code = sdfg.generate_code()[0].clean_code
    assert ("#pragma omp parallel for schedule(guided, 5) num_threads(10)" in code)