def METHOD_NAME(
    new_tr: Callable[[str, Union[str, None]], str],
    new_trget: Union[Callable[[str], Callable[[str], str]], None] = None,
) -> None:
    global _trfunc, _trget
    _trfunc = new_tr
    if new_trget is not None:
        _trget = new_trget