class_docstr: Can a closure cell
class_docstr_tok: ["Can","a","closure","cell"]
code: def get_object(self, g=None):
      cell_contents = uncan(self.cell_contents, g)
  
      def inner():
          return cell_contents
  
      return py3compat.get_closure(inner)[0]
  
imports: import warnings
  import copy
  import sys
  from types import FunctionType
  from ipython_genutils import py3compat
  from ipython_genutils.importstring import import_item
  from ipython_genutils.py3compat import string_types, iteritems, buffer_to_bytes, buffer_to_bytes_py2
  from traitlets.log import get_logger
label_desc: Use image node_id 2 for calling the CannedCell obj's underlying member method code with example usage: obj.get_object(g) and returns: py3compat, cell_contents