def METHOD_NAME(key=None, ret='all'):
    """
    returns a subtree of the token definition
    :param key: subsection identifier
    :type key: string
    :param ret: default return value, if nothing is found
    :type ret: user defined
    :return: subsection if key exists or user defined
    :rtype: dict or scalar
    """
    res = {'type': 'registration',
           'title': 'Registration Code Token',
           'description': _('Registration: A token that creates a '
                            'registration code that '
                            'can be used as a second factor once.'),
           'init': {},
           'config': {},
           'user':  [],
           # This tokentype is enrollable in the UI for...
           'ui_enroll': ["admin"],
           'policy': {
               SCOPE.ENROLL: {
                   ACTION.MAXTOKENUSER: {
                       'type': 'int',
                       'desc': _("The user may only have this maximum number of registration tokens assigned."),
                       'group': GROUP.TOKEN
                   },
                   ACTION.MAXACTIVETOKENUSER: {
                       'type': 'int',
                       'desc': _(
                           "The user may only have this maximum number of active registration tokens assigned."),
                       'group': GROUP.TOKEN
                   }
               }
           },
           }
    if key:
        ret = res.get(key)
    else:
        if ret == 'all':
            ret = res
    return ret