code: def _replace_local_codeuri(self):
          
  
          all_resources = self.sam_template.get("Resources", {})
  
          for _, resource in all_resources.items():
  
              resource_type = resource.get("Type")
              resource_dict = resource.get("Properties")
  
              if resource_type == "AWS::Serverless::Function":
  
                  SamTemplateValidator._update_to_s3_uri("CodeUri", resource_dict)
  
              if resource_type == "AWS::Serverless::LayerVersion":
  
                  SamTemplateValidator._update_to_s3_uri("ContentUri", resource_dict)
  
              if resource_type == "AWS::Serverless::Api":
                  if "DefinitionBody" not in resource_dict:
                      SamTemplateValidator._update_to_s3_uri("DefinitionUri", resource_dict)
docs: 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)