class_docstr: Can a function.
class_docstr_tok: ["Can","a","function","."]
docstr: Get an object out of the can.
docstr_tok: ["Get","an","object","out","of","the","can","."]
code: def get_object(self, g=None):
      """Get an object out of the can."""
      # try to load function back into its module:
      if not self.module.startswith("__"):
          __import__(self.module)
          g = sys.modules[self.module].__dict__
  
      if g is None:
          g = {}
      defaults = (
          tuple(uncan(cfd, g) for cfd in self.defaults)
          if self.defaults
          else None
      )
      closure = (
          tuple(uncan(cell, g) for cell in self.closure)
          if self.closure
          else None
      )
      return FunctionType(
          self.code, g, self.__name__, defaults, closure
      )
  
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 3 for calling the CannedFunction obj's underlying member method code with example usage: obj.get_object(g) and returns: FunctionType