code: def __init__(self, weight=None, reduction="none", ignore_index=-1):
      super(CrossEntropyLoss2d, self).__init__()
      self.nll_loss = nn.NLLLoss(
          weight, reduction=reduction, ignore_index=ignore_index
      )
  
imports: import math
  import torch.utils.model_zoo
  import torch
  import torch.nn
  import torch.nn.functional
  from torch.nn.modules.batchnorm import _BatchNorm
  from .None import settings
label_desc: Use image node_id 1 to create a new CrossEntropyLoss2d object from inherited base classes: nn with example: obj = CrossEntropyLoss2d(weight, reduction, ignore_index)