def METHOD_NAME(input_: dict, length_rep=None):
    if length_rep is None:
        length_rep = len(tokenizer.encode(input_["text"]))
    if params_default["is_always_use_length"]:
        if length_rep <= 15:
            length_param = "1"
        elif length_rep <= 50:
            length_param = "2"
        elif length_rep <= 256:
            length_param = "3"
        else:
            length_param = "-"
    else:
        length_param = "-"
    return f"|{input_['speaker']}|{length_param}|{input_['text']}"