def marker_of_node(node, name):
    """
    Return marker of node by name
    """
    try:
        return node.get_marker(name)
    except AttributeError:
        return node.get_closest_marker(name)
