If I have multiple (at least two) data sets, how does the Siamese neural network input balance?

The same data label is 1, the difference is 0. If there are three data sets, how can I randomly choose