def _is_available(self, time_slot: quantum.QuantumTimeSlot) -> bool:
        """Returns True if the slot is available for reservation."""
        for t in self._schedule:
            if t.time_slot_type == quantum.QuantumTimeSlot.TimeSlotType.UNALLOCATED:
                continue
            if t.end_time and t.end_time.timestamp() <= time_slot.start_time.timestamp():
                continue
            if t.start_time and t.start_time.timestamp() >= time_slot.end_time.timestamp():
                continue
            return False
        return True
Returns True if the slot is available for reservation.
cirq-google/cirq_google/engine/abstract_local_processor.py