class_docstr: Can a function.
class_docstr_tok: ["Can","a","function","."]
docstr: Initialize the can
docstr_tok: ["Initialize","the","can"]
code: def __init__(self, f):
      """Initialize the can"""
      self._check_type(f)
      self.code = f.__code__
      self.defaults: typing.Optional[typing.List[typing.Any]]
      if f.__defaults__:
          self.defaults = [can(fd) for fd in f.__defaults__]
      else:
          self.defaults = None
  
      self.closure: typing.Any
      closure = f.__closure__
      if closure:
          self.closure = tuple(can(cell) for cell in closure)
      else:
          self.closure = None
  
      self.module = f.__module__ or "__main__"
      self.__name__ = f.__name__
      self.buffers = []
  
imports: import typing
  import warnings
  import copy
  import pickle
  import sys
  from types import FunctionType
  from ipyparallel.serialize import codeutil
  from traitlets.log import get_logger
  from traitlets.utils.importstring import import_item
label_desc: Use image node_id 1 to create a new CannedFunction object from inherited base classes: CannedObject with example: obj = CannedFunction(f)