code: def __init__(self, classes, score_function, score_function_dim=None):
      super().__init__()
      self.classes = jit.Attribute(classes, List[str])
      self.score_function = score_function
      self.score_function_dim = score_function_dim
  
imports: from typing import Dict, List, Optional, Union
  import torch
  import torch.nn.functional
  from caffe2.python import core
  from pytext.common import Padding
  from pytext.config.component import create_loss
  from pytext.data.utils import Vocabulary
  from pytext.fields import FieldMeta
  from pytext.loss import AUCPRHingeLoss, BinaryCrossEntropyLoss, BinaryCrossEntropyWithLogitsLoss, CrossEntropyLoss, HingeLoss, KLDivergenceBCELoss, KLDivergenceCELoss, LabelSmoothedCrossEntropyLoss, MultiLabelSoftMarginLoss
  from pytext.utils.label import get_custom_or_automatic_label_weights
  from pytext.utils.typing import WeightingMethod
  from torch import jit
  from .output_layer_base import OutputLayerBase
  from .utils import OutputLayerUtils
label_desc: Use image node_id 1 to create a new ClassificationScores object from inherited base classes: jit with example: obj = ClassificationScores(classes, score_function, score_function_dim)