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 pointer(self, pointer: callable) -> None:
      if not callable(pointer):
          raise e.TypeError("`pointer` should be a callable")
      if len(signature(pointer).parameters) > 1:
          raise e.ArgumentError("`pointer` should only have 1 argument")
  
      self._pointer = pointer
  
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 4 for calling the Function obj's underlying member method code with example usage: obj.pointer(pointer) without return types