def is_ccx_course(course_key):
 return (isinstance(course_key, CCXLocator) or isinstance(course_key, CCXBlockUsageLocator))

def is_ccx_course ( course_key ) : return ( isinstance ( course_key , CCXLocator ) or isinstance ( course_key , CCXBlockUsageLocator ) )
check whether the course locator maps to a ccx course; this is important because we dont allow access to ccx courses in studio .