class_docstr: A TreeSpace class for trees, agents, variables and methods
  related to a tree-based search space.
class_docstr_tok: ["A","TreeSpace","class","for","trees",",","agents",",","variables","and","methods","related","to","a","tree-based","search","space","."]
code: def terminals(self, terminals: List[str]) -> None:
      if not isinstance(terminals, list):
          raise e.TypeError("`terminals` should be a list")
  
      self._terminals = terminals
  
imports: import copy
  from typing import List, Optional, Tuple, Union
  import numpy
  import opytimizer.math.random
  import opytimizer.utils.constant
  import opytimizer.utils.exception
  from opytimizer.core import Agent, Node, Space
  from opytimizer.utils import logging
label_desc: Use image node_id 11 for calling the TreeSpace obj's underlying member method code with example usage: obj.terminals(terminals) without return types