<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _setattr_default(obj, attr, value, default):
 """Set an attribute of an object to a value or default value."""

    if value is None:
        setattr(obj, attr, default)
    else:
        setattr(obj, attr, value)