def _include_in_find(self, c, query):
include = True<EOL>if include and '<STR_LIT:type>' in query:<EOL><INDENT>include = query['<STR_LIT:type>'] == c.type<EOL><DEDENT>if include and '<STR_LIT:label>' in query:<EOL><INDENT>def finder(l, query):<EOL><INDENT>if not self.case_insensitive:<EOL><INDENT>return l.label.find(query['<STR_LIT:label>'])<EOL><DEDENT>else:<EOL><INDENT>return l.label.upper().find(query['<STR_LIT:label>'].upper())<EOL><DEDENT><DEDENT>include = any([finder(l, query) >= <NUM_LIT:0> for l in c.labels])<EOL><DEDENT>if include and '<STR_LIT>' in query:<EOL><INDENT>coll = self.get_by_id(query['<STR_LIT>']['<STR_LIT:id>'])<EOL>if not coll or not isinstance(coll, Collection):<EOL><INDENT>raise ValueError(<EOL>'<STR_LIT>'<EOL>)<EOL><DEDENT>if '<STR_LIT>' in query['<STR_LIT>'] and query['<STR_LIT>']['<STR_LIT>'] == '<STR_LIT:all>':<EOL><INDENT>members = self.expand(coll.id)<EOL><DEDENT>else:<EOL><INDENT>members = coll.members<EOL><DEDENT>include = any([True for id in members if str(id) == str(c.id)]) <EOL><DEDENT>return include<EOL>
:param c: A :class:`skosprovider.skos.Concept` or
    :class:`skosprovider.skos.Collection`.
:param query: A dict that can be used to express a query.
:rtype: boolean