code: def set_python_instance_state(self, instance, state, unsafe=False):
      if hasattr(instance, "__setstate__"):
          instance.__setstate__(state)
      else:
          slotstate = {}
          if isinstance(state, tuple) and len(state) == 2:
              state, slotstate = state
          if hasattr(instance, "__dict__"):
              if not unsafe and state:
                  for key in state.keys():
                      self.check_state_key(key)
              instance.__dict__.update(state)
          elif state:
              slotstate.update(state)
          for key, value in slotstate.items():
              if not unsafe:
                  self.check_state_key(key)
              setattr(instance, key, value)
  
imports: from .error import *
  from .nodes import *
  import collections.abc, datetime, base64, binascii, re, sys, types
label_desc: Use image node_id 14 for calling the FullConstructor obj's underlying member method code with example usage: obj.set_python_instance_state(instance, state, unsafe) without return types