def pinyin_to_zhuyin_table(istream=None):
    """ Returns a dictionary mapping zhuyin to pinyin. """
    with _get_stream_context(istream) as istream:
        table = {}
        for zhuyin, pinyin in parse_lines(istream):
            table[pinyin] = zhuyin

    return table