code: def _get_path_of_module(
      root: torch.nn.Module, submodule: torch.nn.Module
  ) -> Optional[str]:
      """Get the path (fully qualified name) of a submodule
  
      Example::
  
      >> class M(torch.nn.Module):
             def __init__(self):
                 self.linear = torch.nn.Linear(5, 5)
             def forward(self, x):
                 return self.linear(x)
  
      >> m = M()
      >> l = m.linear
      >> _get_path_of_module(m, l)
      "linear"
      """
      for n, p in root.named_modules():
          if submodule is p:
              return n
      return None
  
imports: import functools
  import warnings
  from collections import OrderedDict
  from inspect import getfullargspec, signature
  from typing import Any, Callable, Dict, Optional, Tuple, Union
  import torch
  from torch.ao.quantization.quant_type import QuantType
  from torch.fx import Node
  from torch.nn.utils.parametrize import is_parametrized
label_desc: Use image node_id 24 for calling a global function with example usage: _get_path_of_module(root, submodule) and returns: None, n