class_docstr: A Node instance is used for composing tree-based structures.
class_docstr_tok: ["A","Node","instance","is","used","for","composing","tree-based","structures","."]
docstr: Initialization method.
  
  Args:
      name: Name of the node (e.g., it should be the terminal identifier or function name).
      category: Category of the node (e.g., TERMINAL or FUNCTION).
      value: Value of the node (only used if it is a terminal).
      left: Pointer to node's left child.
      right: Pointer to node's right child.
      parent: Pointer to node's parent.
docstr_tok: ["Initialization","method",".","Args",":","name",":","Name","of","the","node","(","e.g.",",","it","should","be","the","terminal","identifier","or","function","name",")",".","category",":","Category","of","the","node","(","e.g.",",","TERMINAL","or","FUNCTION",")",".","value",":","Value","of","the","node","(","only","used","if","it","is","a","terminal",")",".","left",":","Pointer","to","node","'s","left","child",".","right",":","Pointer","to","node","'s","right","child",".","parent",":","Pointer","to","node","'s","parent","."]
code: def __init__(
      self,
      name: Union[str, int],
      category: str,
      value: Optional[np.ndarray] = None,
      left: Optional[Node] = None,
      right: Optional[Node] = None,
      parent: Optional[Node] = None,
  ) -> None:
      """Initialization method.
  
      Args:
          name: Name of the node (e.g., it should be the terminal identifier or function name).
          category: Category of the node (e.g., TERMINAL or FUNCTION).
          value: Value of the node (only used if it is a terminal).
          left: Pointer to node's left child.
          right: Pointer to node's right child.
          parent: Pointer to node's parent.
  
      """
  
      self.name = name
      self.category = category
      self.value = value
  
      self.left = left
      self.right = right
      self.parent = parent
  
      self.flag = True
  
imports: from __future__ import annotations
  from typing import Any, Dict, List, Optional, Union
  import numpy
  import opytimizer.utils.constant
  import opytimizer.utils.exception
label_desc: Use image node_id 1 to create a new Node object  with example: obj = Node(name, category, value, left, right, parent)