def METHOD_NAME(cls):
    class Item(cls.Basic):
        def __init__(self, name):
            self.name = name
        def __repr__(self):
            return "Item id=%d name=%s keywordassoc=%r" % (
                self.item_id,
                self.name,
                self.keywords,
            )
    class Keyword(cls.Basic):
        def __init__(self, name):
            self.name = name
        def __repr__(self):
            return "Keyword id=%d name=%s" % (self.keyword_id, self.name)
    class KeywordAssociation(cls.Basic):
        def __init__(self, keyword, data):
            self.keyword = keyword
            self.data = data
        def __repr__(self):
            return "KeywordAssociation itemid=%d keyword=%r data=%s" % (
                self.item_id,
                self.keyword,
                self.data,
            )