def find_above(node, substring):
    """
    Looks for the parent with the given substring in the name

    :param node: Node to search from
    :type node: pm.nt.DagNode

    :param substring: String to look for in a node name
    :type substring: str

    :return: pm.nt.DagNode
    """
    while node:
        if substring in node.name():
            return node

        node = node.getParent()

    return None