human
I wrote the below code

    def getter(self):
        if (attr is None):
            return self._items
        return [getattr(frag, attr) for frag in self._items]
    return property(fget=getter, doc=doc)

What's a good function header?
 ... Here's a good function header?
assistant
#Here's a good function header.

def allitems(attr=None, doc=''):