def contains_courses(self, content_ids):
<EOL>course_keys = {parse_course_key(k) for k in content_ids}<EOL>content_ids_in_catalog = self.content_filter_ids<EOL>if not content_ids_in_catalog:<EOL><INDENT>content_ids_in_catalog = self._filter_members('<STR_LIT:key>', list(course_keys))<EOL><DEDENT>return set(content_ids).issubset(content_ids_in_catalog) or course_keys.issubset(content_ids_in_catalog)<EOL>
Return true if this catalog contains the given courses.

The content_ids parameter should be a list containing course keys
and/or course run ids.