One approach is to use an F-test for goodness of fit (a description is in this question https://stats.stackexchange.com/questions/579260/). This requires data that has been sampled with the same conditions. 

Effectively it is a test to see whether the error terms in the model have zero expectation. You can also do this by visually inspecting the residuals.

In some models the error also relates to the expected value (except if there is potentially over-dispersion, but sometimes that might be excluded based on theoretical grounds). Examples are a binary classification or estimatiom of a Poisson distributed variable. In that case one can compare the observed likelihood or variance with the one that would be expected.