def get_maxpool_layer_indexes(model):
    """
    Gets a model and returns the indexes of layers containing 'MaxPool' as a list

    :param model: A nn.Module model
    :return: A list of integer numbers
    """

    pooling_indexes = []
    for i, d in enumerate(model.features):
        if str(d).__contains__('MaxPool'):
            pooling_indexes.append(i)
    return pooling_indexes