<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_cmap(name, clst):
 """Add a color map."""

    global cmaps
    assert len(clst) == min_cmap_len, \
        ValueError("color map '%s' length mismatch %d != %d (needed)" % (
            name, len(clst), min_cmap_len))
    cmaps[name] = ColorMap(name, clst)