

def __plug(self, node, plugPath):
    plug = node.parent().descendant(plugPath)
    if isinstance(node, Gaffer.ValuePlug):
        return plug
    if (plug is None):
        raise RuntimeError(('"%s" does not exist' % plugPath))
    else:
        raise RuntimeError(('"%s" is not a ValuePlug' % plugPath))

dataset/ETHPy150Open ImageEngine/gaffer/python/Gaffer/PythonExpressionEngine.py PythonExpressionEngine.__plug/VarMisuse@30/35 `plug`->`node`