Yep, the "STONITH" technique [1]. But programmatically resetting one node over a network/RPC call might not work, if internode-network comms are down for that node, but it can still access shared storage via other networks... The Oracle's HA fencing doc mentions other methods too, like IPMI LAN fencing and SCSI persistent reservations [2].
[1] https://en.wikipedia.org/wiki/STONITH
[2] https://docs.oracle.com/en/operating-systems/oracle-linux/8/...