code: def replace_modules(self, speedup: "ModelSpeedup"):
      raise NotImplementedError()
  
file_path: nni/nni/compression/speedup/replacer.py
imports: import logging
  from typing import TYPE_CHECKING, Callable, Dict
  from torch.utils._pytree import tree_map
  from ..utils import get_nested_attr, set_nested_attr
label_desc: Use image node_id 1 for calling the Replacer obj's underlying member method code with example usage: obj.replace_modules(speedup) without return types