def _get_data_segments(channels, start, end, connection):
allsegs = io_nds2.get_availability(channels, start, end,<EOL>connection=connection)<EOL>return allsegs.intersection(allsegs.keys())<EOL>
Get available data segments for the given channels