def METHOD_NAME(m: torch.nn.Module):
    try:
        logging.debug(f"Weight norm is removed from {m}.")
        torch.nn.utils.remove_weight_norm(m)
    except ValueError:  # this module didn't have weight norm
        return