def _check_bad_segment(self, start, stop, picks,
                           reject_by_annotation=False):
        if start < 0:
            return None
        if reject_by_annotation and self.annotations is not None:
            annot = self.annotations
            sfreq = self.info['sfreq']
            onset = _onset_to_seconds(self, annot.onset)
            overlaps = np.where(onset < stop / sfreq)
            overlaps = np.where(onset[overlaps] + annot.duration[overlaps] >
                                start / sfreq)
            for descr in annot.description[overlaps]:
                if descr.lower().startswith('bad'):
                    return descr
        return self[picks, start:stop][0]
Finds all items with attributes matching ``**kwargs``.
dataset/ETHPy150Open mne-tools/mne-python/mne/io/base.py/_BaseRaw._check_bad_segment--crossover with--dataset/ETHPy150Open rackspace/pyrax/pyrax/clouddns.py/CloudDNSManager.findall