Which Library do I use to get SNS Canister Cycle Balances

Good morning,

Just wondering how I get the same cycle balances the dashboard does:

Thanks,
James

Ah ok i found it

On the root canister is the method canister_status and I can get the cycles balance here.