I am trying to implement a paper for my research purposes. To create one part of the model I created a class. The code was running fine on Google colab but when I tried running