code: def __setattr__(self, name: str, val: Any) -> None:
      if name.startswith("_") or name in QuantType:
          super().__setattr__(name, val)
      else:
          self._extra_layer_setting[name] = val
  
file_path: nni/nni/compression/utils/quantization/settings.py
imports: from typing import Any, Optional
  from .literal import QuantDtype, QuantType, QuantScheme
  from .utils import calculate_qmin_qmax, get_bits_length
label_desc: Use image node_id 2 for calling the LayerQuantSetting obj's underlying member method code with example usage: obj.__setattr__(name, val) without return types