In many studies, it's important to know, how much losses are in the network. We can add a function to calculate 1) Line Losses 2) Shunt losses 3) Total Losses.It also helps us to check the accuracy of the model from a different perspective.
Thanks @swaroopguggilam