class_docstr: smoothness penalty for UASR.
code: def __init__(
      self,
      weight: float = 1.0,
      reduction: str = "none",
  ):
      super().__init__()
      assert check_argument_types()
  
      self.weight = weight
      self.reduction = reduction
  
imports: import torch
  import torch.nn.functional
  from typeguard import check_argument_types
  from espnet2.uasr.loss.abs_loss import AbsUASRLoss
label_desc: Use image node_id 1 to create a new UASRSmoothnessPenalty object from inherited base classes: AbsUASRLoss with example: obj = UASRSmoothnessPenalty(weight, reduction)