Understanding how SageMaker invokes your code