code: def recursive_populate_fx_names(module: nn.Module) -> None:
      if isinstance(module, QuantEmbeddingBagCollection) or isinstance(
          module, ShardedQuantEmbeddingBagCollection
      ):
          populate_fx_names(module)
          return
      for submodule in module.children():
          recursive_populate_fx_names(submodule)
  
file_path: torchrec/torchrec/quant/utils.py
imports: from typing import Optional, Union
  import torch
  from torch import nn
  from torchrec.distributed.model_parallel import DistributedModelParallel
  from torchrec.distributed.quant_embeddingbag import ShardedQuantEmbeddingBagCollection
  from torchrec.quant.embedding_modules import EmbeddingBagCollection, EmbeddingCollection
label_desc: Use image node_id 2 for calling a global function with example usage: recursive_populate_fx_names(module) without return types