def get_section_display_name(course_id):
 course = modulestore().get_course(course_id, depth=4)
 section_display_name = ([''] * len(course.get_children()))
 i = 0
 for section in course.get_children():
  section_display_name[i] = own_metadata(section).get('display_name', '')
  i += 1
 return section_display_name

def get_section_display_name ( course_id ) : course = modulestore ( ) . get_course ( course_id , depth = 4 ) section_display_name = ( [ '' ] * len ( course . get_children ( ) ) ) i = 0 for section in course . get_children ( ) : section_display_name [ i ] = own_metadata ( section ) . get ( 'display_name' , '' ) i += 1 return section_display_name
returns an array of the display names for each section in the course .