def _isvalidnode(pynode): #(7)
    try:
        bool(pynode)
        return True
    except __HOLE__:
        return False
dataset/ETHPy150Open rgalanakis/practicalmayapython/src/chapter7/callbacks.py/_isvalidnode