code: def forward(self, x: torch.Tensor) -> torch.Tensor:
      out = (
          self.sigmoid(x) * (self.val_range[1] - self.val_range[0])
          + self.val_range[0]
      )
      return out
  
imports: import math
  from typing import List, Optional, Tuple
  import torch
  import torch.nn
  import torch.nn.functional
label_desc: Use image node_id 2 for calling the RangeSigmoid obj's underlying member method code with example usage: obj.forward(x) and returns: out