def safe_stata_string_quote(text: str) -> str:
    """Safely quote a string for Stata.

    Use this when the string should not be changed.

    Args:
        text: A string for a Stata argument

    Returns:
        A quoted string. If there is a quotation mark, then we make use
        of Stata compound quotation marks.
    """
    if '"' in text:
        # Compound double quotes
        return f"""`"{text}"'"""
    return f'"{text}"'