code: def get_object(self, g=None):
      from numpy import frombuffer
  
      data = self.buffers[0]
      if self.pickled:
          # we just pickled it
          return pickle.loads(buffer_to_bytes_py2(data))
      else:
          if not py3compat.PY3 and isinstance(data, memoryview):
              # frombuffer doesn't accept memoryviews on Python 2,
              # so cast to old-style buffer
              data = buffer(data.tobytes())
          return frombuffer(data, dtype=self.dtype).reshape(self.shape)
  
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 CannedArray obj's underlying member method code with example usage: obj.get_object(g) and returns: pickle, frombuffer