@task(base=BaseInstructorTask)
def cohort_students(entry_id, xmodule_instance_args):
 action_name = ugettext_noop('cohorted')
 task_fn = partial(cohort_students_and_upload, xmodule_instance_args)
 return run_main_task(entry_id, task_fn, action_name)

@ task ( base = BaseInstructorTask ) def cohort_students ( entry_id , xmodule_instance_args ) : action_name = ugettext_noop ( 'cohorted' ) task_fn = partial ( cohort_students_and_upload , xmodule_instance_args ) return run_main_task ( entry_id , task_fn , action_name )
cohort students in bulk .