human
I wrote the below code

    if (not case_sensitive):
        def sort_func(item):
            if isinstance(item, basestring):
                item = item.lower()
            return item
    else:
        sort_func = None
    return sorted(seq, key=sort_func)

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

def do_sort(value, case_sensitive=False):