def _convert_sparse_to_list(sparse_local_values):
    """Converts a sparse explanation to a list.

    :param sparse_local_values: The sparse matrix to be converted to a list representation that includes
        the data, indices, indptr and shape.
    :type sparse_local_values: scipy.sparse.csr_matrix
    :return: The local importance values as a list representation.
    :rtype: list[list[int | float]]
    """
    sparse_data = []
    sparse_data.append(sparse_local_values.data.tolist())
    sparse_data.append(sparse_local_values.indices.tolist())
    sparse_data.append(sparse_local_values.indptr.tolist())
    sparse_data.append(list(sparse_local_values.shape))
    return sparse_data