def METHOD_NAME(
    waveform_extractor,
    method="radius",
    peak_sign="neg",
    num_channels=5,
    radius_um=100.0,
    threshold=5,
    by_property=None,
    outputs="id",
):
    """
        Get channel sparsity (subset of channels) for each template with several methods.
        Parameters
        ----------
        waveform_extractor: WaveformExtractor
            The waveform extractor
    {}
        outputs: str
            * 'id': channel id
            * 'index': channel index
        Returns
        -------
        sparsity: dict
            Dictionary with unit ids as keys and sparse channel ids or indices (id or index based on 'outputs')
            as values
    """
    from spikeinterface.core.sparsity import compute_sparsity
    warnings.warn(
        "The 'get_template_channel_sparsity()' function is deprecated. " "Use 'compute_sparsity()' instead",
        DeprecationWarning,
        stacklevel=2,
    )
    assert outputs in ("id", "index"), "'outputs' can either be 'id' or 'index'"
    sparsity = compute_sparsity(
        waveform_extractor,
        method=method,
        peak_sign=peak_sign,
        num_channels=num_channels,
        radius_um=radius_um,
        threshold=threshold,
        by_property=by_property,
    )
    # handle output ids or indexes
    if outputs == "id":
        return sparsity.unit_id_to_channel_ids
    elif outputs == "index":
        return sparsity.unit_id_to_channel_indices