code: def __setattr__(self, key, value):
      if key == "_inited":
          super().__setattr__(key, value)
          return
      try:
          object.__getattribute__(self, key)
          super().__setattr__(key, value)
          return
      except AttributeError:
          pass
  
      if not self._inited:
          super().__setattr__(key, value)
      else:
          self._setattr(key, value)
  
imports: import contextlib
  import functools
  import operator
  import os
  import warnings
  import threading
  from copy import deepcopy
  from typing import Union, Dict
label_desc: Use image node_id 8 for calling the AttributeDict obj's underlying member method code with example usage: obj.__setattr__(key, value) without return types