Record video on anomaly detection in Python

its not related to deepstream issue , its my pipleline issue that has to be fixed .