def test_initial_inputs(self):
        root = ConstantNode('root')
        branch = ConstantNode('branch')
        leaf = ConstantNode('node', inputs=([root], {'branch': branch}))
        self.assertEqual({leaf}, root._dependents)
        self.assertEqual({leaf}, branch._dependents)
        self.assertEqual((root,), leaf._positional_inputs)
        self.assertEqual({'branch': branch}, leaf._keyword_inputs)
Inputs of a node can be set up in the constructor
dataset/ETHPy150Open akaihola/lusmu/lusmu/tests/test_core.py/NodeTestCase.test_initial_inputs