code: def get_submodules(model: torch.nn.Module, key: str):
      """Return the submodules of the given key."""
  
      parent_module = model.get_submodule(".".join(key.split(".")[:-1]))
      target_name = key.split(".")[-1]
      target_module = model.get_submodule(key)
      return parent_module, target_name, target_module
  
imports: from typing import List
  import torch
  from typeguard import check_argument_types
label_desc: Use image node_id 3 for calling a global function with example usage: get_submodules(model, key) and returns: parent_module,  target_name,  target_module