def style_to_ansi_code(style):
ret = '<STR_LIT>'<EOL>for attr_name in _styles[style]:<EOL><INDENT>ret += codes.get(attr_name, attr_name)<EOL><DEDENT>return ret<EOL>
:param style: A style name
:type style: string
:returns: A string containing one or more ansi escape codes that are
          used to render the given style.
:type return: string