As you might guess, the encode() function turns a regular integer into a synchsafed integer and the decode() function does the opposite. Therefore the following line would evaluate to true.
This is a quickstart on how you create and deploy a Python function on Azure Functions 2.X using the Azure Functions Core Tools.