code: def tower_input_params(module: nn.Module) -> Tuple[bool, bool]:
      """
      Utilty to compute the mapping of tower KJT args to pass to the embedding modules.
  
      Args:
          module (nn.Module):
      Returns:
          Tuple[bool, bool]: tuple of 2 booleans representing if KJT and weighted KJT are required, respectively.
      """
      if isinstance(module, EmbeddingCollection):
          return True, False
      elif isinstance(module, EmbeddingBagCollection):
          return not module.is_weighted(), module.is_weighted()
      # default to assuming both kjt and weight_kjt required
      return True, True
  
file_path: torchrec/torchrec/modules/embedding_tower.py
imports: from typing import List, Optional, Tuple
  import torch
  import torch.nn
  from torchrec.modules.embedding_modules import EmbeddingBagCollection, EmbeddingCollection
  from torchrec.sparse.jagged_tensor import KeyedJaggedTensor
label_desc: Use image node_id 1 for calling a global function with example usage: tower_input_params(module) and returns: True,  True, True,  False, unknown,  module