code: def _split_names(namestr):
          
          out = []
          namestr = QUOTE_REGEX.sub('', namestr)
          while True:
              namestr = namestr.strip('\' \n')
              if ',' not in namestr:
                  break
              for nds2type in io_nds2.Nds2ChannelType.names() + ['']:
                  if nds2type and ',%s' % nds2type in namestr:
                      try:
                          channel, ctype, namestr = namestr.split(',', 2)
                      except ValueError:
                          channel, ctype = namestr.split(',')
                          namestr = ''
                      out.append('%s,%s' % (channel, ctype))
                      break
                  elif nds2type == '' and ',' in namestr:
                      channel, namestr = namestr.split(',', 1)
                      out.append(channel)
                      break
          if namestr:
              out.append(namestr)
          return out
docs: Split a comma-separated list of channel names.