class_docstr: A TWO class, inherited from Optimizer.
  
  This is the designed class to define TWO-related
  variables and methods.
  
  References:
      A. Kaveh. Tug of War Optimization.
      Advances in Metaheuristic Algorithms for Optimal Design of Structures (2016).
class_docstr_tok: ["A","TWO","class",",","inherited","from","Optimizer",".","This","is","the","designed","class","to","define","TWO-related","variables","and","methods",".","References",":","A.","Kaveh",".","Tug","of","War","Optimization",".","Advances","in","Metaheuristic","Algorithms","for","Optimal","Design","of","Structures","(","2016",")","."]
code: def beta(self, beta: float) -> None:
      if not isinstance(beta, (float, int)):
          raise e.TypeError("`beta` should be a float or integer")
      if beta <= 0 or beta > 1:
          raise e.ValueError(
              "`beta` should be greater than 0 and less than 1"
          )
  
      self._beta = beta
  
imports: import copy
  from typing import Any, Dict, List, Optional
  import numpy
  import opytimizer.math.random
  import opytimizer.utils.constant
  import opytimizer.utils.exception
  from opytimizer.core import Optimizer
  from opytimizer.core.agent import Agent
  from opytimizer.core.function import Function
  from opytimizer.core.space import Space
  from opytimizer.utils import logging
label_desc: Use image node_id 11 for calling the TWO obj's underlying member method code with example usage: obj.beta(beta) without return types