def has_parm_with_criteria(node, criteria):
    """Returns True if the specified node has any parms
    that match a given criteria.

    criteria: (lambda) function with a hou.Parm as argument
    """
    parms = node.parms() # should it be parmTuples()?
    for parm in parms:
        if criteria(parm):
            return True
    return False