import io
import csv


def list_to_csv_line(data):
    """Converts the input list into a valid CSV line string.

    Args:
        data: The input list

    Returns:
        String containing a valid CSV representation of the input list.
    """
    output = io.StringIO()
    writer = csv.writer(output, quoting=csv.QUOTE_MINIMAL, lineterminator='')
    writer.writerow(data)
    return output.getvalue()