TheModelClass is just a placeholder for any model.
E.g. you could have written a custom model named MyModel, which you could swap then with TheModelClass.
If you want to use a pretrained model, you can directly use it without wrapping into another class.
Of course, you can adapt some layers based on your use case (e.g. changing the last classification layer).