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 _get_module_cls_name(
      cls,
      module_cls_or_name: str | torch.nn.Module | Type[torch.nn.Module],
  ) -> str:
      if isinstance(module_cls_or_name, torch.nn.Module):
          module_cls_name = module_cls_or_name.__class__.__name__
      elif isinstance(module_cls_or_name, str):
          module_cls_name = module_cls_or_name
      elif issubclass(module_cls_or_name, torch.nn.Module):
          module_cls_name = module_cls_or_name.__name__
      else:
          raise RuntimeError(
              "`module_cls_or_name` is not an instance or subclass of `torch.nn.Module` or a name."
          )
      return module_cls_name
  
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 3 for calling the ModuleSetting obj's underlying member method code with example usage: obj._get_module_cls_name(cls, module_cls_or_name) and returns: module_cls_name