def METHOD_NAME(tree):
    separate_noun_grammar = '''NP: {<NN|NNS|NNP>+}
                               FUNC_TARGET: {<WP|WDT>}
                               FUNC_CLASS:{<ALL>}'''
    if tree.label() == 'NP':
        tree = toolbox.get_the_only_sub_tree(tree)
    return toolbox.parse(separate_noun_grammar, tree.leaves())