code: def __init__(self, dim: int = -1):
      super().__init__()
      self.dim = dim
  
imports: import torch
  import torch.nn
  import torch.nn.functional
  from torch import Tensor
  from torch.autograd import Function
  from torch.jit import script
label_desc: Use image node_id 1 to create a new TSoftmax object from inherited base classes: torch.nn with example: obj = TSoftmax(dim)