def set_attr(object, attribute, value):
    """
    Sets the named attribute on the given object to the specified value. Then returns it.

    setattr(x, 'y', v) is equivalent to ``x.y = v''

    :param object: The object
    :type object: ```Any```

    :param attribute: The attribute
    :type attribute: ```str```

    :param value: The value
    :type value: ```Any```
    """
    setattr(object, attribute, value)
    return object