def update_template(self, template_dict, original_template_path, built_artifacts):
original_dir = os.path.dirname(original_template_path)<EOL>for logical_id, resource in template_dict.get("<STR_LIT>", {}).items():<EOL><INDENT>if logical_id not in built_artifacts:<EOL><INDENT>continue<EOL><DEDENT>artifact_relative_path = os.path.relpath(built_artifacts[logical_id], original_dir)<EOL>resource_type = resource.get("<STR_LIT>")<EOL>properties = resource.setdefault("<STR_LIT>", {})<EOL>if resource_type == "<STR_LIT>":<EOL><INDENT>properties["<STR_LIT>"] = artifact_relative_path<EOL><DEDENT>if resource_type == "<STR_LIT>":<EOL><INDENT>properties["<STR_LIT>"] = artifact_relative_path<EOL><DEDENT><DEDENT>return template_dict<EOL>
Given the path to built artifacts, update the template to point appropriate resource CodeUris to the artifacts
folder

Parameters
----------
template_dict
original_template_path : str
    Path where the template file will be written to

built_artifacts : dict
    Map of LogicalId of a resource to the path where the the built artifacts for this resource lives

Returns
-------
dict
    Updated template