class_docstr: A Space class for agents, variables and methods
  related to the search space.
class_docstr_tok: ["A","Space","class","for","agents",",","variables","and","methods","related","to","the","search","space","."]
docstr: Creates a list of agents.
docstr_tok: ["Creates","a","list","of","agents","."]
code: def _create_agents(self) -> None:
      """Creates a list of agents."""
  
      self.agents = [
          Agent(
              self.n_variables,
              self.n_dimensions,
              self.lb,
              self.ub,
              self.mapping,
          )
          for _ in range(self.n_agents)
      ]
  
imports: from typing import List, Optional, Tuple, Union
  import numpy
  import opytimizer.utils.exception
  from opytimizer.core import Agent
  from opytimizer.utils import logging
label_desc: Use image node_id 20 for calling the Space obj's underlying member method code with example usage: obj._create_agents() without return types