def get_collections(self, ignore=None):
if ignore is None:<EOL><INDENT>return self.collections<EOL><DEDENT>return [c for c in self.collections if<EOL>getattr(c, '<STR_LIT>', None) == ignore]<EOL>
Return the collections matching the given `_ignore` value

        Parameters
        ----------
        ignore : `bool`, or `None`
            value of `_ignore` to match

        Returns
        -------
        collections : `list`
            if `ignore=None`, simply returns all collections, otherwise
            returns those collections matching the `ignore` parameter