docstr: Simple class to make a node for a tree.
  
  Parameters
  ----------
  node_id : A unique id for the node. Do not build a tree with 2 nodes
            that have the same id.
  
  split_feature: The feature on which this node does the splitting.
  
  value:  The prediction value (if leaf node), or the split value if
          an intermediate node.
  
  node_type: The node type; float, str, int, or leaf.
docstr_tok: ["Simple","class","to","make","a","node","for","a","tree",".","Parameters","--","--","--","--","--","node_id",":","A","unique","id","for","the","node",".","Do","not","build","a","tree","with","2","nodes","that","have","the","same","id",".","split_feature",":","The","feature","on","which","this","node","does","the","splitting",".","value",":","The","prediction","value","(","if","leaf","node",")",",","or","the","split","value","if","an","intermediate","node",".","node_type",":","The","node","type",";","float",",","str",",","int",",","or","leaf","."]
code: def __init__(
      self,
      node_id,
      split_feature,
      value,
      node_type,
      left_id=None,
      right_id=None,
      missing_id=None,
  ):
      """
      Simple class to make a node for a tree.
  
      Parameters
      ----------
      node_id : A unique id for the node. Do not build a tree with 2 nodes
                that have the same id.
  
      split_feature: The feature on which this node does the splitting.
  
      value:  The prediction value (if leaf node), or the split value if
              an intermediate node.
  
      node_type: The node type; float, str, int, or leaf.
      """
  
      self.node_id = node_id
      # If not a leaf node.
      if split_feature is not None:
          self.split_feature_column = split_feature[0]
          self.split_feature_index = split_feature[1]
      else:
          self.split_feature_column = None
          self.split_feature_index = None
  
      # float/int/str or leaf.
      # Set to leaf if the node type is leaf.
      self.node_type = node_type
      is_leaf = node_type == "leaf"
      self.is_leaf = is_leaf
      self.value = value
  
      # Pointer to the left and right nodes.
      self.left = None
      self.missing = None
      self.right = None
      self.parent = None
  
      self.left_id = left_id
      self.right_id = right_id
      self.missing_id = missing_id
      self.parent_id = None
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  from turicreate.util import _raise_error_if_not_of_type
  from turicreate.toolkits._internal_utils import _numeric_param_check_range
  import sys
label_desc: Use image node_id 1 to create a new Node object from inherited base classes: object with example: obj = Node(node_id, split_feature, value, node_type, left_id, right_id, missing_id)