def METHOD_NAME(obj):
    def __repr__(self):
        cls = self.__class__
        return '%s(%s)' % (cls.__name__, ', '.join(
            '%s=%r' % (field, self[index])
            for index, field in enumerate(cls._fields)
        ))
    obj.__repr__ = __repr__
    return obj