class_docstr: A Function class used to hold single-objective functions.
class_docstr_tok: ["A","Function","class","used","to","hold","single-objective","functions","."]
docstr: Initialization method.
  
  Args:
      pointer: Pointer to a function that will return the fitness value.
docstr_tok: ["Initialization","method",".","Args",":","pointer",":","Pointer","to","a","function","that","will","return","the","fitness","value","."]
code: def __init__(self, pointer: callable) -> None:
      """Initialization method.
  
      Args:
          pointer: Pointer to a function that will return the fitness value.
  
      """
  
      logger.info("Creating class: Function.")
  
      self.pointer = pointer
  
      if hasattr(pointer, "__name__"):
          self.name = pointer.__name__
      else:
          self.name = pointer.__class__.__name__
  
      self.built = True
  
      logger.debug("Function: %s | Built: %s.", self.name, self.built)
      logger.info("Class created.")
  
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 1 to create a new Function object  with example: obj = Function(pointer)