code: def is_attribute(method, name=None):
      
      if name is None:
          name = method.__name__
      method.is_attribute = True
      method.name = name
      return method
docs: Decorator for methods that are attributes.