'Helper that returns a dictionary of chapter grade information.'

def _get_chapter_grade_info(self, chapter, course_structure):

    chapter_subsection_grades = self._get_subsection_grades(course_structure, chapter.location)
    return {'display_name': block_metadata_utils.display_name_with_default_escaped(chapter), 'url_name': block_metadata_utils.url_name_for_block(chapter), 'sections': chapter_subsection_grades}
