def is_harvard_notes_enabled(course):
 modules = set(['textannotation', 'imageannotation', 'videoannotation'])
 return bool(modules.intersection(course.advanced_modules))

def is_harvard_notes_enabled ( course ) : modules = set ( [ 'textannotation' , 'imageannotation' , 'videoannotation' ] ) return bool ( modules . intersection ( course . advanced_modules ) )
returns true if harvard annotation tool is enabled for the course .