<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _replace_property(property_key, property_value, resource, logical_id):
 """ 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 """

        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)