def _get_exploration_summaries_from_models(exp_summary_models):
 exploration_summaries = [get_exploration_summary_from_model(exp_summary_model) for exp_summary_model in exp_summary_models]
 result = {}
 for exp_summary in exploration_summaries:
  result[exp_summary.id] = exp_summary
 return result

def _get_exploration_summaries_from_models ( exp_summary_models ) : exploration_summaries = [ get_exploration_summary_from_model ( exp_summary_model ) for exp_summary_model in exp_summary_models ] result = { } for exp_summary in exploration_summaries : result [ exp_summary . id ] = exp_summary return result
given an iterable of expsummarymodel instances .