code: def __getstate__(self):
      # weakref.proxy don't pickle well, so we use weakref.ref
      # manually and don't pickle the weakref.
      # We restore the weakref when we unpickle.
      ret = [self.prev(), self.next()]
      try:
          ret.append(self.key)
      except AttributeError:
          pass
      return ret
  
imports: from __future__ import absolute_import, print_function, division
  import types
  import weakref
  from six import string_types
label_desc: Use image node_id 1 for calling the Link obj's underlying member method code with example usage: obj.__getstate__() and returns: ret