code: def __init__(
      self,
      min_val: float,
      max_val: float,
      hard_clip: Optional[bool] = False,
      *args,
      **kwargs,
  ) -> None:
      super().__init__()
      self.min_val = min_val
      self.max_val = max_val
      self.hard_clip = hard_clip
  
imports: from typing import Any, Optional
  import torch
  from torch import Tensor, nn
label_desc: Use image node_id 1 to create a new Clip object from inherited base classes: nn with example: obj = Clip(min_val, max_val, hard_clip)