def METHOD_NAME(m: torch.nn.Module):
    if isinstance(m, torch.nn.Conv1d) or isinstance(m, torch.nn.Conv2d):
        torch.nn.utils.weight_norm(m)
        logging.debug(f"Weight norm is applied to {m}.")