human
I wrote the below code

    pal = []
    if as_cmap:
        cmap = _init_mutable_colormap()
    if (input == 'rgb'):
        @interact
        def choose_light_palette_rgb(r=(0.0, 1.0), g=(0.0, 1.0), b=(0.0, 1.0), n=(3, 17)):
            color = (r, g, b)
            if as_cmap:
                colors = light_palette(color, 256, input='rgb')
                _update_lut(cmap, colors)
                _show_cmap(cmap)
            else:
                pal[:] = light_palette(color, n, input='rgb')
                palplot(pal)
    elif (input == 'hls'):
        @interact
        def choose_light_palette_hls(h=(0.0, 1.0), l=(0.0, 1.0), s=(0.0, 1.0), n=(3, 17)):
            color = (h, l, s)
            if as_cmap:
                colors = light_palette(color, 256, input='hls')
                _update_lut(cmap, colors)
                _show_cmap(cmap)
            else:
                pal[:] = light_palette(color, n, input='hls')
                palplot(pal)
    elif (input == 'husl'):
        @interact
        def choose_light_palette_husl(h=(0, 359), s=(0, 99), l=(0, 99), n=(3, 17)):
            color = (h, s, l)
            if as_cmap:
                colors = light_palette(color, 256, input='husl')
                _update_lut(cmap, colors)
                _show_cmap(cmap)
            else:
                pal[:] = light_palette(color, n, input='husl')
                palplot(pal)
    if as_cmap:
        return cmap
    return pal

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

def choose_light_palette(input='husl', as_cmap=False):