def format_comment(comment_data):
format_pieces = []<EOL>if '<STR_LIT>' in comment_data:<EOL><INDENT>format_pieces.append('<STR_LIT>')<EOL><DEDENT>if '<STR_LIT>' in comment_data:<EOL><INDENT>if format_pieces:<EOL><INDENT>format_pieces.append('<STR_LIT:U+002CU+0020>')<EOL><DEDENT>format_pieces.append('<STR_LIT>')<EOL><DEDENT>if format_pieces:<EOL><INDENT>format_pieces.append('<STR_LIT>')<EOL><DEDENT>if '<STR_LIT>' in comment_data:<EOL><INDENT>format_pieces.append('<STR_LIT>')<EOL><DEDENT>if '<STR_LIT>' in comment_data:<EOL><INDENT>format_pieces.append('<STR_LIT>')<EOL><DEDENT>if '<STR_LIT:message>' in comment_data:<EOL><INDENT>format_pieces.append('<STR_LIT>')<EOL><DEDENT>return '<STR_LIT>'.join(format_pieces).format(**comment_data)<EOL>
Formats the data returned by the linters.

    Given a dictionary with the fields: line, column, severity, message_id,
    message, will generate a message like:

    'line {line}, col {column}: {severity}: [{message_id}]: {message}'

    Any of the fields may nbe absent.

    Args:
      comment_data: dictionary with the linter data.

    Returns:
      a string with the formatted message.