Added wrap pad
@cantonios I have updated the function now. Tested it both in graph mode and eager mode. Let me know if there's anything else I should update! 

 Hi @cantonios Can you please review this PR ? Thank you! Hi @madt2709 Any update on this PR? Please. Thank you! Hey, sorry I haven't had time to work on this. I dont think its far off but before working on it I'd like to invest time in setting up tests properly so we don't have so much back and forth again.  This PR is stale because it has been open for 14 days with no activity. It will be closed if no further activity occurs. Thank you. This PR was closed because it has been inactive for 14 days since being marked as stale. Please reopen if you'd like to work on this further.
Fixes https://github.com/tensorflow/tensorflow/issues/57672