def METHOD_NAME(function, properties, prop_name):
    """ If the property is set, it is added to the function body. """
    val = properties.get(prop_name)
    if val:
        function['properties'][prop_name] = val
    return