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","."]
code: def value(self, value: np.ndarray) -> None:
      if self.category != "TERMINAL":
          self._value = None
      else:
          if not isinstance(value, np.ndarray):
              raise e.TypeError(
                  "`value` should be an N-dimensional numpy array"
              )
  
          self._value = value
  
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 9 for calling the Node obj's underlying member method code with example usage: obj.value(value) without return types