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 category(self, category: str) -> None:
      if category not in ["TERMINAL", "FUNCTION"]:
          raise e.ValueError(
              "`category` should be `TERMINAL` or `FUNCTION`"
          )
  
      self._category = category
  
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 7 for calling the Node obj's underlying member method code with example usage: obj.category(category) without return types