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_shortcut_setting(
      cls, setting1: _SETTING, setting2: Dict[str, Any]
  ):
      for _, target_setting in setting1.items():
          update_keys = [
              key for key in target_setting.keys() if key in setting2
          ]
          for key in update_keys:
              target_setting[key] = deepcopy(setting2[key])
  
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 5 for calling the ModuleSetting obj's underlying member method code with example usage: obj._update_shortcut_setting(cls, setting1, setting2) without return types