code: def __setstate__(self, state):
      self.prev = weakref.ref(state[0])
      self.next = weakref.ref(state[1])
      if len(state) == 3:
          self.key = state[2]
  
imports: from __future__ import absolute_import, print_function, division
  import types
  import weakref
  from six import string_types
label_desc: Use image node_id 2 for calling the Link obj's underlying member method code with example usage: obj.__setstate__(state) without return types