def is_example_for(node):
    """ Detect if the node is mentioned being an example for something. If so,
        return the node that the input note is an example for.

        Currently only handles "such as" constructs.
    """

    has_such_as = False
    for d in node.dependents:
        if d.rel == 'case' and d.dep.text == 'such':
            such_node = d.dep
            for dd in such_node.dependents:
                if dd.rel == 'mwe' and dd.dep.text == 'as':
                    has_such_as = True
    if has_such_as and node.gov_rel == 'nmod':
        return node.gov
    return None