def merge(self, resource_type, resource_properties):
if resource_type not in self.template_globals:<EOL><INDENT>return resource_properties<EOL><DEDENT>global_props = self.template_globals[resource_type]<EOL>return global_props.merge(resource_properties)<EOL>
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