code: def has_trainable_params(module: nn.Module) -> bool:
      return any(
          p.requires_grad for p in module.parameters(recurse=False)
      )
  
file_path: opacus/opacus/utils/module_utils.py
imports: import io
  import logging
  import sys
  from typing import Dict, Iterable, List, Tuple
  import torch
  import torch.nn
label_desc: Use image node_id 1 for calling a global function with example usage: has_trainable_params(module) and returns: any