def quoted(text):
    """Return a string surrounded by quotes if the string is not empty.

    Parameters
    ----------
    text : str
        A text string.

    Returns
    -------
    quoted_text : str
        Text string surrounded by quotes if the string is not empty.
    """
    if not text:
        return text
    return '"' + text + '"'
