docs: def view_dupl_sources(token, dstore):
      """
      Show the sources with the same ID and the truly duplicated sources
      """
      fields = ['source_id', 'code', 'gidx1', 'gidx2', 'num_ruptures']
      dic = group_array(dstore['source_info'].value[fields], 'source_id')
      sameid = []
      dupl = []
      for source_id, group in dic.items():
          if len(group) > 1:  # same ID sources
              sources = []
              for rec in group:
                  geom = dstore['source_geom'][rec['gidx1']:rec['gidx2']]
                  src = Source(source_id, rec['code'], geom, rec['num_ruptures'])
                  sources.append(src)
              if all_equal(sources):
                  dupl.append(source_id)
              sameid.append(source_id)
      if not dupl:
          return ''
      msg = str(dupl) + '\n'
      msg += ('Found %d source(s) with the same ID and %d true duplicate(s)'
              % (len(sameid), len(dupl)))
      fakedupl = set(sameid) - set(dupl)
      if fakedupl:
          msg += '\nHere is a fake duplicate: %s' % fakedupl.pop()
      return msg