keypair = Keypair.create_from_uri('//Alice') # replace with your mnemonic phrase
call = substrate.compose_call(
call_module='Network',
call_function='add_to_node_delegate_stake',
call_params={
'subnet_id': subnet_id,
'subnet_node_id': subnet_node_id,
'stake_to_be_added': stake_to_be_added,
}
)
extrinsic = substrate.create_signed_extrinsic(call=call, keypair=keypair)
receipt = substrate.submit_extrinsic(extrinsic, wait_for_inclusion=True)