class_docstr: An Optimizer class that holds meta-heuristics-related properties
  and methods.
class_docstr_tok: ["An","Optimizer","class","that","holds","meta-heuristics-related","properties","and","methods","."]
code: def algorithm(self, algorithm: str) -> None:
      if not isinstance(algorithm, str):
          raise e.TypeError("`algorithm` should be a string")
  
      self._algorithm = algorithm
  
file_path: opytimizer/opytimizer/core/optimizer.py
imports: import copy
  import time
  from typing import Any, Dict
  import opytimizer.utils.exception
  from opytimizer.core.function import Function
  from opytimizer.core.space import Space
  from opytimizer.utils import logging
label_desc: Use image node_id 3 for calling the Optimizer obj's underlying member method code with example usage: obj.algorithm(algorithm) without return types