def update_course_run_with_enterprise_context(course_run, add_utm_info=True, enterprise_catalog_uuid=None):
url = urljoin(<EOL>settings.LMS_ROOT_URL,<EOL>reverse(<EOL>'<STR_LIT>',<EOL>kwargs={'<STR_LIT>': FAKE_UUIDS[<NUM_LIT:0>], '<STR_LIT>': course_run['<STR_LIT:key>']}<EOL>)<EOL>)<EOL>course_run['<STR_LIT>'] = update_url_with_enterprise_context(<EOL>url,<EOL>add_utm_info=add_utm_info,<EOL>enterprise_catalog_uuid=enterprise_catalog_uuid<EOL>)<EOL>return course_run<EOL>
Populate a fake course run response with any necessary Enterprise context for testing purposes.