def get_layers(net_param):
    """Get layers information.

    Parameters
    ----------
    net_param : caffe_pb2.NetParameter
        A pretrined network description.
    Returns
    -------
    layers : list
        description of the layers.
    version : string
        version information of the pretrained model.
    """
    if len(net_param.layers) > 0:
        return net_param.layers[:], "V1"
    elif len(net_param.layer) > 0:
        return net_param.layer[:], "V2"
    else:
        raise Exception("Couldn't find layers!")