def create_encoder(base_model):
    """
    Creates encoder based on base_model

    Parameters
    ----------
    base_model : model in keras.applications
        used to create base model without classification top and trained on
        imagenet
    """
    return base_model(weights='imagenet', include_top=False)