'See the docs for xmodule.modulestore.mixed.MixedModuleStore'

def clone_course(self, source_course_id, dest_course_id, user_id, fields=None, **kwargs):

    with remove_ccx(source_course_id) as (source_course_id, _):
        with remove_ccx(dest_course_id) as (dest_course_id, dest_restore):
            return dest_restore(self._modulestore.clone_course(source_course_id, dest_course_id, user_id, fields=fields, **kwargs))
