def _gen_neighbor_keys(result_prefix="") -> tuple:
    """Generate neighbor keys for other functions to store/access info in adata.

    Parameters
    ----------
        result_prefix : str, optional
            generate keys based on this prefix, by default ""

    Returns
    -------
        tuple:
            A tuple consisting of (conn_key, dist_key, neighbor_key)

    """
    if result_prefix:
        result_prefix = result_prefix if result_prefix.endswith("_") else result_prefix + "_"
    if result_prefix is None:
        result_prefix = ""

    conn_key, dist_key, neighbor_key = (
        result_prefix + "connectivities",
        result_prefix + "distances",
        result_prefix + "neighbors",
    )
    return conn_key, dist_key, neighbor_key