parameters: (self, node_set_id, node_set_members=None)
docstring: Create a node side from the list of node indices.
  
          Node sets are unnamed when created.  To name them, use the
          'rename_node_set' function.
  
          Example:
          >>> model.create_node_set(1, [0, 1, 2, 3])
docstring_summary: Create a node side from the list of node indices.
docstring_tokens: Create a node side from the list of node indices .
function: def create_node_set(self, node_set_id, node_set_members=None):
          """
          Create a node side from the list of node indices.
  
          Node sets are unnamed when created.  To name them, use the
          'rename_node_set' function.
  
          Example:
          >>> model.create_node_set(1, [0, 1, 2, 3])
  
          """
          # if it exists, warn that it will be overwritten
          if self.node_set_exists(node_set_id):
              self._exists_warning(node_set_id, 'node set')
          # reformat members if necessary
          if not node_set_members:
              node_set_members = []
          # do not allow duplicates
          new_members = self._remove_duplicates(node_set_members,
                                                preserve_order=True)
          if len(new_members) != len(node_set_members):
              self._warning(
                  'Duplicate nodes in set.',
                  'The node set member list contains multiple copies '
                  'of some nodes.  These nodes will only be added '
                  'once.')
          # add the new set
          self.node_sets[node_set_id] = ['', new_members, {}]
function_tokens: def create_node_set ( self , node_set_id , node_set_members = None ) : # if it exists, warn that it will be overwritten if self . node_set_exists ( node_set_id ) : self . _exists_warning ( node_set_id , 'node set' ) # reformat members if necessary if not node_set_members : node_set_members = [ ] # do not allow duplicates new_members = self . _remove_duplicates ( node_set_members , preserve_order = True ) if len ( new_members ) != len ( node_set_members ) : self . _warning ( 'Duplicate nodes in set.' , 'The node set member list contains multiple copies ' 'of some nodes.  These nodes will only be added ' 'once.' ) # add the new set self . node_sets [ node_set_id ] = [ '' , new_members , { } ]