class_docstr: A base class for all regularizers.
class_docstr_tok: ["A","base","class","for","all","regularizers","."]
docstr: Return the weighted regularization term.
docstr_tok: ["Return","the","weighted","regularization","term","."]
code: def term(self) -> torch.FloatTensor:
      """Return the weighted regularization term."""
      return self.regularization_term * self.weight
  
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 7 for calling the Regularizer obj's underlying member method code with example usage: obj.term() and returns: unknown