def set_hidden_measurement_lists_from_Ns_Nv(num_nodes, Ns, Nv, list_bus_id_power_hiding_priority=None, list_bus_id_voltage_hiding_priority=None):
    """
        Returns the list of the hidden power bus ids and a list of hidden voltage ids
        :param num_nodes: number of buses in the grid
        :param Ns: Number of observable power measurements in the last time step
        :param Nv: Number of observable voltage measurements in the last time step
        :param list_bus_id_power_hiding_priority: list of bus indices which was sorted according to the preferred
                    order of hiding. Index 0 of this list corresponds to the most likely bus to be hidden.
        :param list_bus_id_voltage_hiding_priority: list of bus indices which was sorted according to the preferred
        order of hiding. Index 0 of this list corresponds to the most likely bus to be hidden.
        :return:
        """
    if list_bus_id_power_hiding_priority is None:
        list_bus_id_power_hiding_priority = list(range(num_nodes))
    if list_bus_id_voltage_hiding_priority is None:
        list_bus_id_voltage_hiding_priority = list(range(num_nodes))
    hidden_power_bus_id_list = []
    next_busid_to_hide = 0
    for bus_id in range(Ns, num_nodes):
        hidden_power_bus_id_list.append(list_bus_id_power_hiding_priority[next_busid_to_hide])
        next_busid_to_hide += 1

    hidden_voltage_bus_id_list = []
    next_busid_to_hide = 0
    for bus_id in range(Nv, num_nodes):
        hidden_voltage_bus_id_list.append(list_bus_id_voltage_hiding_priority[next_busid_to_hide])
        next_busid_to_hide += 1
    hidden_power_bus_id_list.sort()
    hidden_voltage_bus_id_list.sort()
    return hidden_power_bus_id_list, hidden_voltage_bus_id_list