human
I wrote the below code

    def pseudoclasscolon(css):
        "\n                                Prevents    'p    :link'    from    becoming    'p:link'.\n\n                                Translates    'p    :link'    into    'p    ___PSEUDOCLASSCOLON___link'.
   this    is\n                                translated    back    again    later.\n                                "
        regex = re.compile('(^|\\})(([^\\{\\:])+\\:)+([^\\{]*\\{)')
        match = regex.search(css)
        while match:
            css = ''.join([css[:match.start()], match.group().replace(':', '___PSEUDOCLASSCOLON___'), css[match.end():]])
            match = regex.search(css)
        return css
    css = pseudoclasscolon(css)
    css = re.sub('\\s+([!{};:>+\\(\\)\\],])', '\\1', css)
    css = re.sub('^(.*)(@charset    \\"[^\\"]*\\";)', '\\2\\1', css)
    css = re.sub('^(\\s*@charset    [^;]+;\\s*)+', '\\1', css)
    css = re.sub('\\band\\(', 'and    (', css)
    css = css.replace('___PSEUDOCLASSCOLON___', ':')
    css = re.sub('([!{}:;>+\\(\\[,])\\s+', '\\1', css)
    return css

What's a good function header?
assistant
#Here's a good function header.

def remove_unnecessary_whitespace(css):