def remove_suffix(text: str, suffix: str):
    # TODO Move where is used
    """Give a text, removes suffix substring from it"""
    if text.endswith(suffix):
        return text[: -len(suffix)]
    return text
Give a text, removes suffix substring from it
argilla-server/src/argilla_server/helpers.py