class_docstr: A CS class, inherited from Optimizer.
  
  This is the designed class to define CS-related
  variables and methods.
  
  References:
      X.-S. Yang and D. Suash. Cuckoo search via Lévy flights.
      World Congress on Nature & Biologically Inspired Computing (2009).
class_docstr_tok: ["A","CS","class",",","inherited","from","Optimizer",".","This","is","the","designed","class","to","define","CS-related","variables","and","methods",".","References",":","X.-S.","Yang","and","D.","Suash",".","Cuckoo","search","via","L\u00e9vy","flights",".","World","Congress","on","Nature","&","Biologically","Inspired","Computing","(","2009",")","."]
docstr: Wraps Cuckoo Search over all agents and variables.
  
  Args:
      space: Space containing agents and update-related information.
      function: A Function object that will be used as the objective function.
docstr_tok: ["Wraps","Cuckoo","Search","over","all","agents","and","variables",".","Args",":","space",":","Space","containing","agents","and","update-related","information",".","function",":","A","Function","object","that","will","be","used","as","the","objective","function","."]
code: def update(self, space: Space, function: Function) -> None:
      """Wraps Cuckoo Search over all agents and variables.
  
      Args:
          space: Space containing agents and update-related information.
          function: A Function object that will be used as the objective function.
  
      """
  
      new_agents = self._generate_new_nests(
          space.agents, space.best_agent
      )
      self._evaluate_nests(space.agents, new_agents, function)
  
      new_agents = self._generate_abandoned_nests(space.agents, self.p)
      self._evaluate_nests(space.agents, new_agents, function)
  
imports: import copy
  from typing import Any, Dict, List, Optional
  import numpy
  import opytimizer.math.distribution
  import opytimizer.math.random
  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 CS obj's underlying member method code with example usage: obj.update(space, function) without return types