class_docstr: A WDO class, inherited from Optimizer.
  
  This is the designed class to define WDO-related
  variables and methods.
  
  References:
      Z. Bayraktar et al. The wind driven optimization technique and its application in electromagnetics.
      IEEE transactions on antennas and propagation (2013).
code: def g(self, g: float) -> None:
      if not isinstance(g, (float, int)):
          raise e.TypeError("`g` should be a float or integer")
      if g < 0:
          raise e.ValueError("`g` should be >= 0")
  
      self._g = g
  
imports: from typing import Any, Dict, Optional
  import numpy
  import opytimizer.math.random
  import opytimizer.utils.exception
  from opytimizer.core import Optimizer
  from opytimizer.core.function import Function
  from opytimizer.core.space import Space
  from opytimizer.utils import logging
label_desc: Use image node_id 7 for calling the WDO obj's underlying member method code with example usage: obj.g(g) without return types