def map_color(color):
    if color is None:
        return None
    elif color.lower() in ColorMap:
        return ColorMap[color.lower()]
    elif len(color) and all(hexdigits in c for c in color):
        return '#%s' % color
    return color
dataset/ETHPy150Open dholm/simpleguitk/simpleguitk/constants.py/map_color/swapped operands of `in`