def METHOD_NAME(self, wallet_name):
    self.log.info("Make sure we cannot import wallet when pruned and required blocks are not available")
    wallet_file = wallet_name + ".dat"
    wallet_birthheight = self.get_birthheight(wallet_file)
    # Verify that the block at wallet's birthheight is not available at the pruned node
    assert_raises_rpc_error(-1, "Block not available (pruned data)", self.nodes[1].getblock, self.nodes[1].getblockhash(wallet_birthheight))
    # Make sure wallet cannot be imported because of missing blocks
    # This will try to rescan blocks `TIMESTAMP_WINDOW` (2h) before the wallet birthheight.
    # There are 6 blocks an hour, so 11 blocks (excluding birthheight).
    assert_raises_rpc_error(-4, f"Pruned blocks from height {wallet_birthheight - 11} required to import keys. Use RPC call getblockchaininfo to determine your pruned height.", self.nodes[1].importwallet, os.path.join(self.nodes[0].datadir, wallet_file))
    self.log.info("- Done")