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","."]
docstr: Creates a list of terminals.
docstr_tok: ["Creates","a","list","of","terminals","."]
code: def _create_terminals(self) -> None:
      """Creates a list of terminals."""
  
      self.terminals = [
          Agent(
              self.n_variables,
              self.n_dimensions,
              self.lb,
              self.ub,
              self.mapping,
          )
          for _ in range(self.n_terminals)
      ]
  
      for terminal in self.terminals:
          terminal.fill_with_uniform()
  
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 16 for calling the TreeSpace obj's underlying member method code with example usage: obj._create_terminals() without return types