def filter_colony_size(colony_df, cluster_params, colony_name):
    """Assign -1 label to too small and too large colonies."""
    colony_size = colony_df.shape[0]
    if not cluster_params['min_size'] < colony_size < cluster_params['max_size'
        ]:
        colony_df['Colony'] = -1
        colony_name = -1
    return colony_df, colony_size, colony_name
