def METHOD_NAME(text, cm, tm, font_dict, font_size) -> None:
    x = tm[4] * cm[0] + tm[5] * cm[2] + cm[4]  # mult(tm, cm)[4]
    y = tm[4] * cm[1] + tm[5] * cm[3] + cm[5]  # mult(tm, cm)[5]
    lines.append({"text": text, "x": x, "y": y})