code: async def _set_wallets(an_data: dict) -> dict:
      
  
      w_mgr = WalletManager()
      rv = {}
      for profile in an_data:
          w_cfg = {'id': an_data[profile].name}
          if an_data[profile].wallet_type:
              w_cfg['storage_type'] = an_data[profile].wallet_type
          if an_data[profile].seed:
              w_cfg['seed'] = an_data[profile].seed
          if an_data[profile].did:
              w_cfg['did'] = an_data[profile].did
          if an_data[profile].wallet_create:
              try:
                  await w_mgr.create(w_cfg, access=an_data[profile].wallet_access)
              except ExtantWallet:
                  pass
          rv[profile] = w_mgr.get(w_cfg, access=an_data[profile].wallet_access)
  
      return rv
docs: Set wallets as configured for setnym operation.
  
      :param an_data: dict mapping profiles to anchor data
      :return: dict mapping anchor names to wallet objects