def __contains__(self, other):
        if type(self) == type(other):
            return self == other
        raise NotImplementedError()
Return a new :class:`Segment that contains the :class:`AnalogSignal`,
dataset/ETHPy150Open sympy/sympy/sympy/geometry/entity.py/GeometryEntity.__contains__--crossover with--dataset/ETHPy150Open NeuralEnsemble/python-neo/neo/core/segment.py/Segment.construct_subsegment_by_unit