code: def get_ids(self):
          
          response = api.request_networks(self)
          all_networks = []
          network_dict = {}
          for network, status in self.networks.items():
              if status['onboarded']:
                  all_networks.append('{}'.format(network))
                  network_dict[status['name']] = network
  
          # For the first onboarded network we find, grab the account id
          for resp in response['networks']:
              if str(resp['id']) in all_networks:
                  self.account_id = resp['account_id']
                  break
  
          self.network_ids = all_networks
          return network_dict
docs: Set the network ID and Account ID.