text: from NodeGraphQt import Node
  
  
  class FooNode(Node):
      """
      A node class with 2 inputs and 2 outputs.
      """
  
      # set a unique node identifier.
      __identifier__ = 'com.chantasticvfx'
  
      # set the initial default node name.
      NODE_NAME = 'Foo'
  
      def __init__(self):
          super(FooNode, self).__init__()
  
          # set the node color.
          self.set_color(2, 67, 81)
  
          # create node inputs.
          self.add_input('foo')
          self.add_input('bar')
  
          # create node outputs.
          self.add_output('apples')
          self.add_output('bananas')
  
  
  class BarNode(Node):
      """
      A node class with 3 inputs and 3 outputs.
      """
  
      # set unique node identifier.
      __identifier__ = 'com.chantasticvfx'
  
      # set initial default node name.
      NODE_NAME = 'Bar'
  
      def __init__(self):
          super(BarNode, self).__init__()
  
          # create node inputs
          self.add_input('hello')
          self.add_input('world')
          self.add_input('foo bar')
  
          # create node outputs
          self.add_output('apples', multi_output=False)
          self.add_output('bananas', multi_output=False)
          self.add_output('orange')
  