parameters: (self, model, parent = None)
docstring: Inserts nodes based on the model which is an instance
          of PSInstrumentGroup.
docstring_summary: Inserts nodes based on the model which is an instance
          of PSInstrumentGroup.
docstring_tokens: Inserts nodes based on the model which is an instance of PSInstrumentGroup .
function: def insert_nodes(self, model, parent = None):
          """
          Inserts nodes based on the model which is an instance
          of PSInstrumentGroup.
          """
          for child in list(model.keys()):
              node = None
              tag = child
              if parent:
                  node = parent.add_child()
                  tag = '/'.join([parent.get_tag(), child])
              else: 
                  node = self._instruments.add_node()
  
              # Creates the node
              node.set_int(1, model[child].enabled)
              node.set_int(2, model[child].timed)
              node.set_string(0, child)
              node.set_tag('%s' % tag)
  
              update_value_cb = lambda attr, value, node = node: self.model_value_set_callback(attr, value, node)
              model[child].set_value_set_notification(update_value_cb)
  
              # Fills the node/model directory
              self.tag_models[tag] = model[child]
  
              # Inserts children
              if '_data_' not in model[child]:
                  self.insert_nodes(model[child], node)
function_tokens: def insert_nodes ( self , model , parent = None ) : for child in list ( model . keys ( ) ) : node = None tag = child if parent : node = parent . add_child ( ) tag = '/' . join ( [ parent . get_tag ( ) , child ] ) else : node = self . _instruments . add_node ( ) # Creates the node node . set_int ( 1 , model [ child ] . enabled ) node . set_int ( 2 , model [ child ] . timed ) node . set_string ( 0 , child ) node . set_tag ( '%s' % tag ) update_value_cb = lambda attr , value , node = node : self . model_value_set_callback ( attr , value , node ) model [ child ] . set_value_set_notification ( update_value_cb ) # Fills the node/model directory self . tag_models [ tag ] = model [ child ] # Inserts children if '_data_' not in model [ child ] : self . insert_nodes ( model [ child ] , node )