def _get_course_enrollment_domain(course_id):
 course = modulestore().get_course(course_id)
 if (course is None):
  return None
 return course.enrollment_domain

def _get_course_enrollment_domain ( course_id ) : course = modulestore ( ) . get_course ( course_id ) if ( course is None ) : return None return course . enrollment_domain
helper function to get the enrollment domain set for a course with id course_id .