def validate_exps_in_collection_are_public(collection):
 for exploration_id in collection.exploration_ids:
  if rights_manager.is_exploration_private(exploration_id):
   raise utils.ValidationError(('Cannot reference a private exploration within a public collection, exploration ID: %s' % exploration_id))

def validate_exps_in_collection_are_public ( collection ) : for exploration_id in collection . exploration_ids : if rights_manager . is_exploration_private ( exploration_id ) : raise utils . ValidationError ( ( 'Cannot reference a private exploration within a public collection, exploration ID: %s' % exploration_id ) )
validates that explorations in a given collection are public .