'Extend the program data with instructor data. The instructor data added here is persisted
on each course in modulestore and can be edited in Studio. Once the course metadata publisher tool
supports the authoring of course instructor data, we will be able to migrate course
instructor data into the catalog, retrieve it via the catalog API, and remove this code.'

def _collect_instructors(self, course_run):

    module_store = modulestore()
    course_run_key = CourseKey.from_string(course_run['key'])
    course_descriptor = module_store.get_course(course_run_key)
    if course_descriptor:
        course_instructors = getattr(course_descriptor, 'instructor_info', {})
        self.instructors.update({instructor.get('name'): instructor for instructor in course_instructors.get('instructors', [])})
