class_docstr: A BA class, inherited from Optimizer.
  
  This is the designed class to define BA-related
  variables and methods.
  
  References:
      X.-S. Yang. A new metaheuristic bat-inspired algorithm.
      Nature inspired cooperative strategies for optimization (2010).
code: def A(self, A: float) -> None:
      if not isinstance(A, (float, int)):
          raise ex.TypeError("`A` should be a float or integer")
      if A < 0:
          raise ex.ValueError("`A` should be >= 0")
  
      self._A = A
  
imports: import copy
  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 BA obj's underlying member method code with example usage: obj.A(A) without return types