code: def forward(self, pred, label):
      pred = F.softmax(pred, dim=1)
      return self.lovasz_softmax(
          pred,
          label,
          per_image=self.per_image,
          ignore=self.ignore_index,
          weighted=self.weighted,
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  import torch
  import torch.nn.functional
  from torch import nn
  from torch.autograd import Variable
label_desc: Use image node_id 2 for calling the LovaszSoftmax obj's underlying member method code with example usage: obj.forward(pred, label) and returns: self