When learning ML at university one assumes that the data you have well represents the environment. We do the famous train/validation/test split and train our model.
However, in practice we see that it is very hard to collect a good dataset. There is a great twitter thread from Abubakar(CEO Gradio) about this topic: https://twitter.com/abidlabs/status/1423067498862219267