class_docstr: A KH class, inherited from Optimizer.
  
  This is the designed class to define KH-related
  variables and methods.
  
  References:
      A. Gandomi and A. Alavi. Krill herd: A new bio-inspired optimization algorithm.
      Communications in Nonlinear Science and Numerical Simulation (2012).
code: def motion(self, motion: np.ndarray) -> None:
      if not isinstance(motion, np.ndarray):
          raise e.TypeError("`motion` should be a numpy array")
  
      self._motion = motion
  
imports: import copy
  from typing import Any, Dict, List, Optional, Tuple
  import numpy
  import opytimizer.math.general
  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 21 for calling the KH obj's underlying member method code with example usage: obj.motion(motion) without return types