code: def merge(self, resource_type, resource_properties):
          
  
          if resource_type not in self.template_globals:
              # Nothing to do. Return the template unmodified
              return resource_properties
  
          global_props = self.template_globals[resource_type]
  
          return global_props.merge(resource_properties)
docs: Adds global properties to the resource, if necessary. This method is a no-op if there are no global properties
          for this resource type
  
          :param string resource_type: Type of the resource (Ex: AWS::Serverless::Function)
          :param dict resource_properties: Properties of the resource that need to be merged
          :return dict: Merged properties of the resource