<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create_action_model(actioncollection):
 """Create and return a new model for the given actioncollection :param actioncollection: the action collection that should get a model :type actioncollection: :class:`jukeboxcore.action.ActionCollection` :returns: the created model :rtype: :class:`TreeModel` :raises: None """

    rootdata = ListItemData(["Name", "Description", "Status", "Message", "Traceback"])
    root = TreeItem(rootdata)
    for au in actioncollection.actions:
        adata = ActionItemData(au)
        TreeItem(adata, parent=root)
    return TreeModel(root)