code: def __init__(
      self,
      modules: Optional[
          Mapping[Union[str, Tuple[str, ...]], Module]
      ] = None,
  ):
      if modules is not None:  # Replace the keys in modules:
          modules = {
              self.to_internal_key(key): module
              for key, module in modules.items()
          }
      super().__init__(modules)
  
file_path: pytorch_geometric/torch_geometric/nn/module_dict.py
imports: from typing import Final, Iterable, Mapping, Optional, Set, Tuple, Union
  import torch
  from torch.nn import Module
label_desc: Use image node_id 1 to create a new ModuleDict object from inherited base classes: torch.nn with example: obj = ModuleDict(modules)