def __contains__(self, val):

        """
        Method which allows ``in`` operator usage.

        Parameters
        ----------
        val : int or tuple or list or range
            Range or integer being checked.

        Returns
        -------
        bool
            ``True`` if **whole** examined range is present in object. Otherwise ``False``.
        """
        
        conv = self.__val_convert(val) # conversion
        return self.contains(val) == conv[1] - conv[0]
dataset/ETHPy150Open rasguanabana/ytfs/ytfs/range_t.py/range_t.__contains__/original