code: def _get_module_by_path(module: nn.Module, path: str) -> nn.Module:
      path = path.split(".")
      for name in path:
          module = getattr(module, name)
      return module
  
imports: from typing import Dict, List, Optional
  from torch import nn
label_desc: Use image node_id 4 for calling a global function with example usage: _get_module_by_path(module, path) and returns: module