def _layer_label(layer, show_layer_names):
    """Select the node label from the layer"""
    from keras.layers.wrappers import Wrapper
    layer_name = layer.name
    class_name = layer.__class__.__name__
    if isinstance(layer, Wrapper):
        layer_name = '{}({})'.format(layer_name, layer.layer.name)
        child_class_name = layer.layer.__class__.__name__
        class_name = '{}({})'.format(class_name, child_class_name)
    return '{}: {}'.format(layer_name, class_name
        ) if show_layer_names else class_name
