def __match_l(self, k, _set):

        """
        Method for searching subranges from `_set` that overlap on `k` range.

        Parameters
        ----------
        k : tuple or list or range
            Range for which we search overlapping subranges from `_set`.
        _set : set
            Subranges set.

        Returns
        -------
        matched : set
            Set of subranges from `_set` that overlaps on `k`.
        """

        return {r for r in _set if k[0] in range(*r) or k[1] in range(*r) or (k[0] < r[0] and k[1] >= r[1])}
                                   #k partially or wholly in r               #r is wholly contained by k
dataset/ETHPy150Open rasguanabana/ytfs/ytfs/range_t.py/range_t.__match_l/original