def _replace_local_codeuri(self):
all_resources = self.sam_template.get("<STR_LIT>", {})<EOL>for _, resource in all_resources.items():<EOL><INDENT>resource_type = resource.get("<STR_LIT>")<EOL>resource_dict = resource.get("<STR_LIT>")<EOL>if resource_type == "<STR_LIT>":<EOL><INDENT>SamTemplateValidator._update_to_s3_uri("<STR_LIT>", resource_dict)<EOL><DEDENT>if resource_type == "<STR_LIT>":<EOL><INDENT>SamTemplateValidator._update_to_s3_uri("<STR_LIT>", resource_dict)<EOL><DEDENT>if resource_type == "<STR_LIT>":<EOL><INDENT>if "<STR_LIT>" not in resource_dict:<EOL><INDENT>SamTemplateValidator._update_to_s3_uri("<STR_LIT>", resource_dict)<EOL><DEDENT><DEDENT><DEDENT>
Replaces the CodeUri in AWS::Serverless::Function and DefinitionUri in AWS::Serverless::Api to a fake
S3 Uri. This is to support running the SAM Translator with valid values for these fields. If this in not done,
the template is invalid in the eyes of SAM Translator (the translator does not support local paths)