If you are CPR certified, but not a medical professional, are you obligated to perform CPR?

Would there be legal consequences if you didn't perform CPR? State is NY specifically for me if that matters, but info in generally would be great as well.

Tried googling this and found lots of stuff about your protections if you perform CPR, but nothing on any obligations.

Thanks in advance!