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

def import_xblock(self, user_id, course_key, block_type, block_id, fields=None, runtime=None, **kwargs):

    with remove_ccx(course_key) as (course_key, restore):
        return restore(self._modulestore.import_xblock(user_id, course_key, block_type, block_id, fields=fields, runtime=runtime, **kwargs))
