init()
def init()The init() function:
Is invoked once when the container pod that deploys the function starts.
Enables you to pass custom attributes to be accessible in the event handler path.
Parameters
ctx(required). Passes custom attributes to the ctx class. This enables the attributes to be accessed in the event handler path.