def _section_metrics(course, access):
 course_key = course.id
 section_data = {'section_key': 'metrics', 'section_display_name': _('Metrics'), 'access': access, 'course_id': unicode(course_key), 'sub_section_display_name': get_section_display_name(course_key), 'section_has_problem': get_array_section_has_problem(course_key), 'get_students_opened_subsection_url': reverse('get_students_opened_subsection'), 'get_students_problem_grades_url': reverse('get_students_problem_grades'), 'post_metrics_data_csv_url': reverse('post_metrics_data_csv')}
 return section_data

def _section_metrics ( course , access ) : course_key = course . id section_data = { 'section_key' : 'metrics' , 'section_display_name' : _ ( 'Metrics' ) , 'access' : access , 'course_id' : unicode ( course_key ) , 'sub_section_display_name' : get_section_display_name ( course_key ) , 'section_has_problem' : get_array_section_has_problem ( course_key ) , 'get_students_opened_subsection_url' : reverse ( 'get_students_opened_subsection' ) , 'get_students_problem_grades_url' : reverse ( 'get_students_problem_grades' ) , 'post_metrics_data_csv_url' : reverse ( 'post_metrics_data_csv' ) } return section_data
provide data for the corresponding dashboard section .