greengrasssdk.utils.testing.
mock
mock decorates _invoke_internal by checking if MY_FUNCTION_ARN is present if MY_FUNCTION_ARN is present, the actual _invoke_internal is invoked otherwise, the mock _invoke_internal is invoked