def find_wf_node(wf, iface_type, name=''):
    """ Return the first node found in the list of node names in `wf` that
    has an interface of type `iface_type`.

    Parameters
    ----------
    wf: nipype Workflow

    iface_type: nipype class

    Returns
    -------
    node: nipype Node
    """
    for node_nom in wf.list_node_names():
        if isinstance(getattr(wf.get_node(node_nom), 'interface', None), iface_type):
            if not name:
                return wf.get_node(node_nom)
            elif name in node_nom.split('.'):
                return wf.get_node(node_nom)
    return None