def METHOD_NAME(self):
    built_function_path = Path(self.test_context.project_directory) / ".aws-sam" / "build" / self.function_name
    zip_file_path = built_function_path / "zipped_function.zip"
    packaged_template = {}
    with open(Path(self.test_context.project_directory) / "packaged_template.json", "r") as json_file:
        packaged_template = json.load(json_file)
    zipped_fn_s3_loc = (
        packaged_template.get("Resources", {})
        .get(self.function_name, {})
        .get("Properties", {})
        .get("CodeUri", None)
    )
    if zipped_fn_s3_loc:
        s3_info = parse_s3_url(zipped_fn_s3_loc)
        self.s3_client.download_file(s3_info["Bucket"], s3_info["Key"], str(zip_file_path))
        with zipfile.ZipFile(zip_file_path, "r") as zip_refzip:
            zip_refzip.extractall(path=built_function_path)