def get_layer_id(model_table, layer_name):
    """
    Get ID of layer from deep learning model
    
    Parameters
    ----------
    model_table : :class:`CASTable`
        CASTable of the deep learning model.
    layer_name : str
        Name of the layer.

    Returns
    -------
    int
        ID of the layer

    """
    return int(model_table.query('_DLKey0_ = "{}"'.format(layer_name.lower(
        ))).fetch()['Fetch'].iloc[0]['_DLLayerID_'])
