For an import tax, based on how people use tomatoes.
In 1883, the United States put a tariff on imported vegetables but not on fruit. The Nix family, who imported tomatoes into New York, paid the tax under protest and sued the port's tax collector, Edward Hedden, to get it back. Their argument: botanically, a tomato is a fruit.
The case, Nix v. Hedden, reached the Supreme Court in 1893. The justices agreed that a tomato is technically the fruit of a vine. But they ruled that tariff laws use words in their everyday meaning, and in ordinary language, tomatoes are vegetables. They're served with dinner, in soups and with meat, not as dessert.
So the tax stood, and tomatoes became vegetables in the eyes of US trade law.
The ruling still comes up in debates about food labels and as a favorite trivia fact. It didn't change botany, though: scientifically, the tomato is still a berry.