def get_examples(target, fn):
    """
        Iterates over the fn frames that contain target as a Frame element and
        returns every description element with the tag EXample

        Returns: list of (example, Frame) pairs
    """
    frames = fn.get_frame_element_frames(target)
    examples = []
    for frame in frames:
        fes = filter(lambda x: x == target, frame.coreFEs + frame.peripheralFEs)
        for fe in fes:
            examples.append((fe.definition.get_elements('ex'), frame))
    return examples