code: def list_wallets(self):
          
          response = make_request(
              '{}wallet'.format(self.url),
              timeout=self.timeout,
              client=self._client)
          try:
              total = response['total']
              return {
                  'credit': response['credit'],
                  'total': WalletTotal(
                      limit=total['limit'],
                      budgeted=total['budgeted'],
                      available=total['available'],
                      unallocated=total['unallocated'],
                      usage=total['usage'],
                      consumed=total['consumed']),
                  'wallets': tuple(Wallet(
                      owner=wallet['owner'],
                      wallet=wallet['wallet'],
                      limit=wallet['limit'],
                      budgeted=wallet['budgeted'],
                      unallocated=wallet['unallocated'],
                      available=wallet['available'],
                      consumed=wallet['consumed'],
                      default='default' in wallet)
                      for wallet in response['wallets']),
              }
          except Exception as err:
              log.error(
                  'cannot process wallets: invalid JSON response: {!r}'.format(
                      response))
              raise ServerError(
                  'unable to get list of wallets: {!r}'.format(err))
docs: Get the list of wallets.
  
          @return an dict containing a list of wallets, a total, and available
              credit.
          @raise ServerError