def find_layer(lines):
    """
    Find the layer type.
    :param lines:
    :return: reference to layer type
    """
    layer_name = []
    for l in lines:
        if 'type' in l:
            _, layer_name = l.split()
            break
    return layer_name