def choose_color_by_layertype(layertype):
    """Define colors for nodes based on the layer type
    """
    color = '#6495ED'  # Default
    if layertype == 'Convolution':
        color = '#FF5050'
    elif layertype == 'Pooling':
        color = '#FF9900'
    elif layertype == 'InnerProduct':
        color = '#CC33FF'
    return color