Write a Python function to takes an image and a single segmentation label file of a building already prepared, index it in an appropriate data store such that it could be used for model training using tensorflow. Write your response with exactly 2 paragraphs, separated with the markdown divider: ***.
user