code: def __init__(self, ignore_index: Optional[int] = None, eps=1e-6):
      super().__init__()
      self.ignore_index = ignore_index
      self.eps = eps
  
file_path: pytorch-toolbelt/pytorch_toolbelt/losses/soft_f1.py
imports: import torch
  from torch import nn, Tensor
  from typing import Optional
label_desc: Use image node_id 1 to create a new SoftF1Loss object from inherited base classes: nn with example: obj = SoftF1Loss(ignore_index, eps)