human
Complete this python program:
def create_qss_style(color_scheme):
assistant
#Here is the Python program you requested.

    """Returns a QSS stylesheet with Spyder color scheme settings.
    The stylesheet can contain classes for:
    Qt: QPlainTextEdit, QFrame, QWidget, etc
    Pygments: .c, .k, .o, etc. (see PygmentsHighlighter)
    IPython: .error, .in-prompt, .out-prompt, etc
    """
    def give_font_weight(is_bold):
        if is_bold:
            return 'bold'
        else:
            return 'normal'
    def give_font_style(is_italic):
        if is_italic:
            return 'italic'
        else:
            return 'normal'
    color_scheme = get_color_scheme(color_scheme)
    (fon_c, fon_fw, fon_fs) = color_scheme['normal']
    font_color = fon_c
    if dark_color(font_color):
        in_prompt_color = 'navy'
        out_prompt_color = 'darkred'
    else:
        in_prompt_color = 'lime'
        out_prompt_color = 'red'
    background_color = color_scheme['background']
    error_color = 'red'
    in_prompt_number_font_weight = 'bold'
    out_prompt_number_font_weight = 'bold'
    inverted_background_color = font_color
    inverted_font_color = background_color
    sheet = 'QPlainTextEdit,    QTextEdit,    ControlWidget    {{\n                                                                                                                                                                        color:    {}    ;\n                                                                                                                                                                        background-color:    {};\n                                                                                                                                                                    }}\n                                                        .error    {{    color:    {};    }}\n                                                        .in-prompt    {{    color:    {};    }}\n                                                        .in-prompt-number    {{    color:    {};    font-weight:    {};    }}\n                                                        .out-prompt    {{    color:    {};    }}\n                                                        .out-prompt-number    {{    color:    {};    font-weight:    {};    }}\n                                                        .inverted    {{    color:   ...