'Return a child XBlock that matches the specified selector'

def get_child_by(self, selector):

    for child in self.get_children():
        if selector(child):
            return child
    return None
