<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def next_primary_replica_name_for_master(self, node_reg, node_ids):
 """ Returns name and corresponding instance name of the next node which is supposed to be a new Primary. In fact it is not round-robin on this abstraction layer as currently the primary of master instance is pointed directly depending on view number, instance id and total number of nodes. But since the view number is incremented by 1 before primary selection then current approach may be treated as round robin. """

        name = self._next_primary_node_name_for_master(node_reg, node_ids)
        return name, Replica.generateName(nodeName=name, instId=0)