def _color(str_, fore_color=None, back_color=None, styles=None):
<EOL>if not config.get("<STR_LIT>", False) or platform_.name == "<STR_LIT>":<EOL><INDENT>return str_<EOL><DEDENT>_init_colorama()<EOL>colored = "<STR_LIT>"<EOL>if not styles:<EOL><INDENT>styles = []<EOL><DEDENT>if fore_color:<EOL><INDENT>colored += getattr(colorama.Fore, fore_color.upper(), '<STR_LIT>')<EOL><DEDENT>if back_color:<EOL><INDENT>colored += getattr(colorama.Back, back_color.upper(), '<STR_LIT>')<EOL><DEDENT>for style in styles:<EOL><INDENT>colored += getattr(colorama.Style, style.upper(), '<STR_LIT>')<EOL><DEDENT>return colored + str_ + colorama.Style.RESET_ALL<EOL>
Return the string wrapped with the appropriate styling escape sequences.

    Args:
      str_ (str): The string to be wrapped.
      fore_color (str, optional): Any foreground color supported by the
        `Colorama`_ module.
      back_color (str, optional): Any background color supported by the
        `Colorama`_ module.
      styles (list of str, optional): Any styles supported by the `Colorama`_
        module.

    Returns:
      str: The string styled with the appropriate escape sequences.

    .. _Colorama:
        https://pypi.python.org/pypi/colorama