code: def _mod2page(
      mod: ModuleType,  # A PyTorch module
  ) -> str:
      "Get the webpage name for a PyTorch module"
      if mod == Tensor:
          return "tensors.html"
      name = mod.__name__
      name = name.replace("torch.", "").replace("utils.", "")
      if name.startswith("nn.modules"):
          return "nn.html"
      return f"{name}.html"
  
imports: from __future__ import annotations
  from types import ModuleType
  import importlib
label_desc: Use image node_id 1 for calling a global function with example usage: _mod2page(mod) and returns: name, str, str, str