code: def _replace_property(property_key, property_value, resource, logical_id):
          
          if property_key and property_value:
              resource.get(PROPERTIES_KEY, {})[property_key] = property_value
          elif property_key or property_value:
              LOG.info("WARNING: Ignoring Metadata for Resource %s. Metadata contains only aws:asset:path or "
                       "aws:assert:property but not both", logical_id)
docs: Replace a property with an asset on a given resource
  
          This method will mutate the template
  
          Parameters
          ----------
          property str
              The property to replace on the resource
          property_value str
              The new value of the property
          resource dict
              Dictionary representing the Resource to change
          logical_id str
              LogicalId of the Resource