class_docstr: An IWO class, inherited from Optimizer.
  
  This is the designed class to define IWO-related
  variables and methods.
  
  References:
      A. R. Mehrabian and C. Lucas. A novel numerical optimization algorithm inspired from weed colonization.
      Ecological informatics (2006).
class_docstr_tok: ["An","IWO","class",",","inherited","from","Optimizer",".","This","is","the","designed","class","to","define","IWO-related","variables","and","methods",".","References",":","A.","R.","Mehrabian","and","C.","Lucas",".","A","novel","numerical","optimization","algorithm","inspired","from","weed","colonization",".","Ecological","informatics","(","2006",")","."]
docstr: Reproduces and flowers a seed into a new offpsring.
  
  Args:
      agent: An agent instance to be reproduced.
      function: A Function object that will be used as the objective function.
  
  Returns:
      (Agent): An evolved offspring.
docstr_tok: ["Reproduces","and","flowers","a","seed","into","a","new","offpsring",".","Args",":","agent",":","An","agent","instance","to","be","reproduced",".","function",":","A","Function","object","that","will","be","used","as","the","objective","function",".","Returns",":","(","Agent",")",":","An","evolved","offspring","."]
code: def _produce_offspring(
      self, agent: Agent, function: Function
  ) -> Agent:
      """Reproduces and flowers a seed into a new offpsring.
  
      Args:
          agent: An agent instance to be reproduced.
          function: A Function object that will be used as the objective function.
  
      Returns:
          (Agent): An evolved offspring.
  
      """
  
      a = copy.deepcopy(agent)
  
      for j, (lb, ub) in enumerate(zip(a.lb, a.ub)):
          a.position[
              j
          ] += self.sigma * r.generate_uniform_random_number(
              lb, ub, a.n_dimensions
          )
      a.clip_by_bound()
  
      a.fit = function(a.position)
  
      return a
  
imports: import copy
  from typing import Any, Dict, Optional
  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 15 for calling the IWO obj's underlying member method code with example usage: obj._produce_offspring(agent, function) and returns: a