code: def _set(self, name, value):
          
          if value is not UNSET:
              if isinstance(value, Slotted):
                  current = getattr(self, name, UNSET)
                  if current is None or current is UNSET:
                      current = value.__class__()
                      current.set(value)
                      setattr(self, name, current)
                      return
                  if isinstance(current, Slotted):
                      current.set(value)
                      return
              setattr(self, name, value)
docs: Args:
              name (str | unicode): Name of slot to set.
              value: Associated value