building tf data for siamese modelling
@pure-rgb,
While I was trying to access the official doc it is providing an error. Could you please provide the colab gist which you are trying and help us to debug the issue in an effective way. Thank you! This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you. This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further. Are you satisfied with the resolution of your issue?
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/62588">Yes</a>
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/62588">No</a>

### Issue type

Support


### Have you reproduced the bug with TensorFlow Nightly?

Yes

### Source

source

### TensorFlow version

2.15

### Custom code

Yes

### OS platform and distribution

_No response_

### Mobile device

_No response_

### Python version

_No response_

### Bazel version

_No response_

### GCC/compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

In this [example](https://keras.io/examples/vision/siamese_contrastive/), raw numpy method is used to build a pipeline for siamese model. I tried to build in tf data api but couldn't do it.  Let's say, I've following folders 

```
folder_1/ 
folder_2/
folder_3/
folder_4/
```

I like to build dataset with multi-input, such that positive-positive and positive-negative pair. I couldn't find any tf ops to make it possible.

![siamese_contrastive_22_0](https://github.com/tensorflow/tensorflow/assets/45315076/e64668e3-6f0a-4b91-937b-6171b6e4578f)


### Standalone code to reproduce the issue

```shell
https://keras.io/examples/vision/siamese_contrastive/
```


### Relevant log output

_No response_