KeyboardInterrupt error

https://colab.research.google.com/drive/11wLSpnHLwHY3AskzkYK2r_NssTGVTlI8#scrollTo=hVjbwr96txKk

I am unable to understand the error when all previously called functions are correct how there can be a KeyboardInterrupt error.

KeyboardInterrupt generally occurs while terminating a program by pressing ctrl + c while some snippet is being executed.