<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_attribute(method, name=None):
 """ Decorator for methods that are attributes. """

    if name is None:
        name = method.__name__
    method.is_attribute = True
    method.name = name
    return method