class_docstr: Hook that helps to freeze some specified model parameters for certain
  number of training iterations. The parameters
  are specified in a dictionary containing {param_name: frozen_iterations}.
  Used in SwAV training.
class_docstr_tok: ["Hook","that","helps","to","freeze","some","specified","model","parameters","for","certain","number","of","training","iterations",".","The","parameters","are","specified","in","a","dictionary","containing","{","param_name",":","frozen_iterations","}",".","Used","in","SwAV","training","."]
code: def _clean_param_path(param_name: str) -> str:
      # Remove FSDP path artifacts
      paths_to_remove = ["_fsdp_wrapped_module.", "_fpw_module."]
      for path_to_remove in paths_to_remove:
          param_name = param_name.replace(path_to_remove, "")
      # Add the missing "module." prefix if missing (DDP prefix)
      if not param_name.startswith("module."):
          param_name = f"module.{param_name}"
      return param_name
  
imports: import logging
  import time
  import torch
  from classy_vision import tasks
  from classy_vision.generic.profiler import compute_activations, compute_flops, count_params
  from classy_vision.hooks.classy_hook import ClassyHook
  from fvcore.common.file_io import PathManager
  from vissl.data import AirstoreDataset, GenericSSLDataset
  from vissl.models.model_helpers import model_output_has_nan
  from vissl.utils.env import get_machine_local_and_dist_rank
label_desc: Use image node_id 2 for calling the FreezeParametersHook obj's underlying member method code with example usage: obj._clean_param_path(param_name) and returns: param_name