In this section, we will build the image locally, create an environment that simulates its operations when deployed on Sagemaker, and perform testing.