def METHOD_NAME(
    wxr: WiktextractContext,
    entry: str,
    lang_code: Optional[str],
    pos: Optional[str],
    sense: Optional[str],
    linkage: Optional[str],
    term_str: str,
) -> List["ThesaurusTerm"]:
    from wiktextract.thesaurus import ThesaurusTerm
    # Example term_str from https://zh.wiktionary.org/wiki/Thesaurus:安置
    # Fromat: traditional／simplified (pinyin) (tags)
    # 施設／施设 (shīshè) (書面)
    # 擺佈／摆布 (bǎibù, bǎibu)
    # 著落／着落 (書面)
    # 措置
    tags = []
    roman = None
    raw_tags, term = capture_text_in_parentheses(term_str)
    for tag in raw_tags:
        if re.search(r"[a-z]", tag):
            roman = tag  # pinyin
        else:
            tags.append(tag)
    return [
        ThesaurusTerm(
            entry=entry,
            language_code=lang_code,
            pos=pos,
            linkage=linkage,
            term=variant_term,
            tags="|".join(tags) if len(tags) > 0 else None,
            roman=roman,
            sense=sense,
            language_variant=variant_type,
        )
        for variant_type, variant_term in split_chinese_variants(term)
    ]