code: def module_contains_param(module, parametrization):
      if is_parametrized(module):
          # see if any of the module tensors have a parametriztion attached that matches the one passed in
          return any(
              any(
                  isinstance(param, parametrization)
                  for param in param_list
              )
              for key, param_list in module.parametrizations.items()
          )
      return False
  
file_path: pytorch/torch/ao/pruning/_experimental/pruner/parametrization.py
imports: import torch
  from torch import nn
  from torch.nn.utils.parametrize import is_parametrized
label_desc: Use image node_id 1 for calling a global function with example usage: module_contains_param(module, parametrization) and returns: False, any