Is Brazil's Brics-building worth it?
It's been more than a year-and-a-half since Brazil's Luiz Inácio Lula da Silva returned to the country's presidency, back from the political dead after his conviction on corruption charges was dramatically annulled.
In that time, President Lula's comeback has given renewed force to one of the world's most unlikely economic alliances - the Brics, a grouping that unites Brazil with Russia, India, China and South Africa.
In his previous time as president from 2003 to 2010, Lula was instrumental in efforts to weld the Brics into a geopolitical entity, and an emerging counterweight to the West.
Now the bloc has momentum on its side once again. It's come to be known as Brics Plus, after the original members agreed at a watershed summit in Johannesburg in August last year to admit a handful of new joiners, including Saudi Arabia and Iran.
Not bad for a grouping that was originally willed into being by sheer high-concept financial whimsy, the brainchild of economist Jim O'Neill, who saw it more as an investment opportunity than a new gang of nations.
"When the Brics were invented, it was pretty much an asset class," says Monica de Bolle, senior fellow at the Peterson Institute for International Economics in Washington.
"But it caught on in Brazil, because it directly spoke to Lula's aspirations in foreign policy."
At the Johannesburg meeting, Lula was particularly bullish about the group's long-term economic prospects.
“We have already surpassed the G7 and account for 32% of global GDP in purchasing power parity," he said.
"Projections indicate that emerging and developing markets will be those that will show the highest growth rate in the coming years," he went on.
"This shows that the dynamism of the economy is in the global south and the Brics is its driving force.”
But that is disingenuous on Lula's part, to say the least. As has been pointed out by the originator of the Bric acronym, who now rejoices in the title of Baron O'Neill of Gatley, all the economic growth in the group has actually come from Xi Jinping's China and Narendra Modi's India.
"None of the other Brics has performed anywhere near as well as those two," he said in an article written in reaction to the bloc's expansion.
"Brazil and Russia account for around the same share of global GDP as they did in 2001, and South Africa is not even the largest economy in Africa [Nigeria has surpassed it]."
As he also points out, China "dominates the Brics by being twice the size of all the others combined", in much the same way that the US dominates the G7.
So what does slow-growth Brazil gain from being dragged along in China's economic slipstream?
Rodrigo Zeidan, a Brazilian economist based at China's New York University Shanghai, tells the BBC that Brazil and China alike see the Brics as a "hedge" in terms of global alliances, rather than as a top priority.
"The Brics right now, for Brazil, cost almost nothing," he says. "So if the benefits are not high, it's fine. They are neither a big benefit nor a hindrance."
Since China is its biggest trading partner, Brazil is comfortable maintaining close relations with Beijing, even if the Brics grouping provides it with some "strange bedfellows", as Mr Zeidan puts it.
Lula has certainly maintained an ambiguous position on Russia's war in Ukraine, but that is more due to Brazil's traditional neutrality in foreign policy than to a wish to support a fellow Brics nation.
For Monica de Bolle at the Peterson Institute, herself a Brazilian economist, President Lula showed "a lot of naivety" in committing to the Brics because of his belief in furthering relations among the big so-called global south nations.
As a result, Brazil has now acquired "a China dependency" that could harm it in other foreign policy relations, she says.
"If you are in the US, you know that the US stance on China is not going to change [whoever wins the presidential election in November]," she adds.
"In either case, it's moving in the direction of greater anti-China sentiment. At some point, that's going to create additional reactions from China, which could put Brazil in a very difficult position, because it's perceived as being aligned with China."
One tangible gain for Brazil from the alliance comes in the shape of the New Development Bank (NDB), a multilateral lender founded by the Brics and described by Lula as "a milestone in effective collaboration between emerging economies".
It is currently headed by Brazilian ex-President Dilma Rousseff. She was President Lula's political protegee, and succeeded him in 2011. But her time in office came to a chaotic end when she was impeached in 2016 for breaking budgetary laws.
The NDB has not only returned her to public life, but since the bank's headquarters are in Shanghai, it makes her key to maintaining links between Brazil and China.
"Dilma is definitely huge in terms of political image. Having Dilma here in Shanghai is very important for strengthening Brazil-China relations," says Mr Zeidan.
Brazil has also benefited directly from NDB money. In June, Ms Rousseff and Brazilian Vice-President Geraldo Alckmin signed a loan deal worth more than $1.1bn (£880m) to help pay for reconstruction after widespread floods in the state of Rio Grande do Sul.
Regarding the NDB and Russia, the bank put all transactions involving the country on hold in March 2022, shortly after Russia’s invasion of Ukraine. And the NDB has complied with international sanctions against Russia.
But Russia is due to take over the rotating presidency of the bank in mid-2025 and there is some uncertainty over what will happen then.
In the meantime, Ms Rousseff is not averse to attending financial gatherings in Russia, and shaking hands with Russian President Vladimir Putin, who has praised her work at the helm of the NDB.
President Lula is a passionate advocate of the Brics as a means of reforming global governance and giving a greater voice to the developing world.
He has criticised the "paralysis" of global institutions, while praising the expansion of the Brics as strengthening the fight for more diverse perspectives.
But other observers retort that the Brics are themselves paralysed by their own internal contradictions, with Russia at war in Ukraine, while China and India have their own mutual squabbles.
Ultimately, says Ms de Bolle in Washington, the Brics are "a heterogeneous group of countries that have nothing in common, apart from the fact that they are big".
"The Brics have no clear agenda that has any real weight," agrees Mr Zeidan in Shanghai.
"Right now, China doesn't ask much of Brazil. However, anything that China asks, Brazil does.
"It's fine to be part of the Brics when the stakes are low. But what if the stakes rise?"
In other words, the effect of the Brics, on Brazil and on the world, may be minor for now. But if China decides to become more assertive, that could change rapidly - and Brazil could be faced with some uncomfortable choices.