Loads a model from the file. If the loaded model is not an instance of the class whose
method was called, then a warning is raised. Nevertheless, the loaded model may be a valid
model.
मापदण्ड:
file_name (str) -- a file name or path to load a model from.
प्रदत्त :
A loaded model.
उभारता है :
TypeError -- if a loaded model is not an instance of the expected class.