def _format_value(stream, type, value):
    """
    Color format a value as {type}( {value} ).

    :param AnsiStream stream: ANSI stream
    :param str type: type string
    :param any value: value to format
    """
    tmpl = '{blue}{type}({reset} {value} {blue}){reset}'
    if stream:
        return stream.ansi_format(tmpl, type=type, value=value)
    return '{type}( {value} )'.format(type=type, value=value)
