def get_exploration_metadata_dicts(exploration_ids, editor_user_id=None):
 exploration_summaries = exp_services.get_exploration_summaries_matching_ids(exploration_ids)
 filtered_exploration_summaries = []
 for exploration_summary in exploration_summaries:
  if (exploration_summary is None):
   continue
  if (exploration_summary.status == rights_manager.ACTIVITY_STATUS_PRIVATE):
   if (editor_user_id is None):
    continue
   if (not rights_manager.Actor(editor_user_id).can_edit(feconf.ACTIVITY_TYPE_EXPLORATION, exploration_summary.id)):
    continue
  filtered_exploration_summaries.append(exploration_summary)
 return [summary.to_metadata_dict() for summary in filtered_exploration_summaries]

def get_exploration_metadata_dicts ( exploration_ids , editor_user_id = None ) : exploration_summaries = exp_services . get_exploration_summaries_matching_ids ( exploration_ids ) filtered_exploration_summaries = [ ] for exploration_summary in exploration_summaries : if ( exploration_summary is None ) : continue if ( exploration_summary . status == rights_manager . ACTIVITY_STATUS_PRIVATE ) : if ( editor_user_id is None ) : continue if ( not rights_manager . Actor ( editor_user_id ) . can_edit ( feconf . ACTIVITY_TYPE_EXPLORATION , exploration_summary . id ) ) : continue filtered_exploration_summaries . append ( exploration_summary ) return [ summary . to_metadata_dict ( ) for summary in filtered_exploration_summaries ]
given a list of exploration ids .