def take_spikes_by_unit(self, unit_list=None):
        if unit_list is None:
            return []
        spike_list = []
        for spike in self.spikes:
            if spike.unit in unit_list:
                spike_list.append(spike)
        return spike_list
Return :class:`Spike` objects in the :class:`Segment` that are also in
dataset/ETHPy150Open NeuralEnsemble/python-neo/neo/core/segment.py/Segment.take_spikes_by_unit