class_docstr: A Function class used to hold single-objective functions.
class_docstr_tok: ["A","Function","class","used","to","hold","single-objective","functions","."]
code: def name(self, name: str) -> None:
      if not isinstance(name, str):
          raise e.TypeError("`name` should be a string")
  
      self._name = name
  
file_path: opytimizer/opytimizer/core/function.py
imports: from inspect import signature
  import numpy
  import opytimizer.utils.exception
  from opytimizer.utils import logging
label_desc: Use image node_id 6 for calling the Function obj's underlying member method code with example usage: obj.name(name) without return types