def accuracy_predicted_substation(**kwargs: dict) -> bool:
    """
    Calculates whether the substation where the changes are predicted
    at corresponds to the substation with the label changes.

    Parameters
    ----------
    **kwargs['Y_subchanged_idx'] : int
        The index of the substation where the 'true' changes would be applied.
    **kwargs['P_subchanged_idx'] : int
        The index of the substation where the predicted changes would be applied.

    Returns
    -------
    bool
        Whether the two substations indices match.
    """
    Y_subchanged_idx = kwargs['Y_subchanged_idx']
    P_subchanged_idx = kwargs['P_subchanged_idx']
    return Y_subchanged_idx == P_subchanged_idx