class_docstr: A base class for all regularizers.
class_docstr_tok: ["A","base","class","for","all","regularizers","."]
docstr: Compute the regularization term for one tensor.
docstr_tok: ["Compute","the","regularization","term","for","one","tensor","."]
code: def forward(self, x: torch.FloatTensor) -> torch.FloatTensor:
      """Compute the regularization term for one tensor."""
      raise NotImplementedError
  
imports: from __future__ import annotations
  import warnings
  from abc import ABC, abstractmethod
  from typing import Any, ClassVar, Iterable, Mapping, Optional
  import torch
  from class_resolver import ClassResolver, normalize_string
  from torch import nn
  from torch.nn import functional
  from .utils import lp_norm, powersum_norm
label_desc: Use image node_id 5 for calling the Regularizer obj's underlying member method code with example usage: obj.forward(x) without return types