code: def construct_yaml_object(self, node, cls):
      data = cls.__new__(cls)
      yield data
      if hasattr(data, "__setstate__"):
          state = self.construct_mapping(node, deep=True)
          data.__setstate__(state)
      else:
          state = self.construct_mapping(node)
          data.__dict__.update(state)
  
imports: from .error import *
  from .nodes import *
  import collections.abc, datetime, base64, binascii, re, sys, types
label_desc: Use image node_id 16 for calling the SafeConstructor obj's underlying member method code with example usage: obj.construct_yaml_object(node, cls) without return types