def METHOD_NAME():
    with config.change_flags(mode=Mode(linker="py")):
        res = get_target_language()
        assert res == ("py",)
    res = get_target_language(Mode(linker="py"))
    assert res == ("py",)
    res = get_target_language(Mode(linker="c"))
    assert res == ("c",)
    res = get_target_language(Mode(linker="c|py"))
    assert res == ("c", "py")
    res = get_target_language(Mode(linker="vm"))
    assert res == ("c", "py")
    with config.change_flags(cxx=""):
        res = get_target_language(Mode(linker="vm"))
        assert res == ("py",)
    res = get_target_language(Mode(linker="jax"))
    assert res == ("jax",)
    res = get_target_language(Mode(linker="numba"))
    assert res == ("numba",)
    class MyLinker(LocalLinker):
        pass
    test_mode = Mode(linker=MyLinker())
    with pytest.raises(Exception):
        get_target_language(test_mode)