code: def __init__(self, dim: Optional[int] = -1, *args, **kwargs):
      super().__init__(dim=dim)
  
imports: from typing import Optional
  from torch import Tensor, nn
label_desc: Use image node_id 1 to create a new Softmax object from inherited base classes: nn with example: obj = Softmax(dim)