class_docstr: This class is used to get the compression setting for a module.
  The setting configures the relevant basic information of how to compress the current module.
class_docstr_tok: ["This","class","is","used","to","get","the","compression","setting","for","a","module",".","The","setting","configures","the","relevant","basic","information","of","how","to","compress","the","current","module","."]
code: def _update_setting(cls, setting1: _SETTING, setting2: _SETTING):
      for target_name, target_setting in setting2.items():
          if target_name in setting1:
              setting1[target_name].update(deepcopy(target_setting))
          else:
              setting1[target_name] = deepcopy(target_setting)
  
file_path: nni/nni/compression/base/setting.py
imports: from __future__ import annotations
  from copy import deepcopy
  from typing import Any, Dict, Literal, Type
  import torch
label_desc: Use image node_id 4 for calling the ModuleSetting obj's underlying member method code with example usage: obj._update_setting(cls, setting1, setting2) without return types