code: def _check_spawnable(source_channels, target_channels):
      
      if len(target_channels) != len(set(target_channels)):
          raise Exception('Spawn channels must be unique')
      return source_channels.issubset(
          set(target_channels))
docs: Check whether gate is spawnable on the target channels.