code: def __init__(self, func):
      if not callable(func):
          raise TypeError("func must be callable")
      self.func = func
  
file_path: chainer/chainer/functions/util/forget.py
imports: import chainer
  from chainer import function
  from chainer import function_node
  from chainer import variable
label_desc: Use image node_id 1 to create a new Forget object from inherited base classes: function_node with example: obj = Forget(func)