def update_enterprise_courses(self, enterprise_customer, course_container_key='<STR_LIT>', **kwargs):
enterprise_context = {<EOL>'<STR_LIT>': enterprise_customer and enterprise_customer.identity_provider,<EOL>'<STR_LIT>': enterprise_customer and str(enterprise_customer.uuid),<EOL>}<EOL>enterprise_context.update(**kwargs)<EOL>courses = []<EOL>for course in self.data[course_container_key]:<EOL><INDENT>courses.append(<EOL>self.update_course(course, enterprise_customer, enterprise_context)<EOL>)<EOL><DEDENT>self.data[course_container_key] = courses<EOL>
This method adds enterprise-specific metadata for each course.

We are adding following field in all the courses.
    tpa_hint: a string for identifying Identity Provider.
    enterprise_id: the UUID of the enterprise
    **kwargs: any additional data one would like to add on a per-use basis.

Arguments:
    enterprise_customer: The customer whose data will be used to fill the enterprise context.
    course_container_key: The key used to find the container for courses in the serializer's data dictionary.