Add Studio support for cohorted courseware

TNL-652
Nit: I'd make this an inner function, as it is only used in ```test_no_visibility_set```.