code: def __init__(
      self, val_range: Tuple[float, float] = (0.0, 1.0)
  ) -> None:
      super(RangeSigmoid, self).__init__()
      assert isinstance(val_range, tuple) and len(val_range) == 2
      self.val_range: Tuple[float, float] = val_range
      self.sigmoid: nn.modules.Module = nn.Sigmoid()
  
imports: import math
  from typing import List, Optional, Tuple
  import torch
  import torch.nn
  import torch.nn.functional
label_desc: Use image node_id 1 to create a new RangeSigmoid object from inherited base classes: nn with example: obj = RangeSigmoid(val_range)