Source and decoding - Bava Kamma 14a
כִּי תַּנְיָא הָהִיא – בְּחָצֵר מְיוּחֶדֶת לָזֶה וְלָזֶה בֵּין לְפֵירוֹת בֵּין לִשְׁווֹרִים. הָהִיא דְּרַב יוֹסֵף – בְּחָצֵר מְיוּחֶדֶת לְפֵירוֹת, וְאֵינָהּ מְיוּחֶדֶת לִשְׁווֹרִים; דִּלְגַבֵּי שֵׁן – הָוְיָא לַהּ חֲצַר הַנִּיזָּק.
When that baraita teaches exemption, it refers to a courtyard designated for both partners for both fruit and oxen. That teaching of Rav Yosef which holds liable refers to a courtyard designated for fruit, but not designated for oxen; thus, regarding Tooth damage, it is deemed the courtyard of the injured party.
The Gemara resolves an apparent contradiction between two Tannaitic sources concerning Tooth and Foot damages in a jointly owned courtyard. The resolution hinges on the specific permitted uses established between the partners. If the courtyard was designated exclusively for storing produce and not for housing animals, an ox brought inside has no right to be there, rendering the location 'another's field' relative to the damaged produce. Conversely, if both partners retained the right to introduce oxen, the courtyard lacks the exclusive status required to generate liability for Tooth and Foot.