code: def get_pred(self, logit, *args, **kwargs):
      preds = torch.max(logit, 2)[1]
      scores = F.log_softmax(logit, 2)
      return preds, scores
  
file_path: pytext/demo/my_tagging/output.py
imports: import torch
  import torch.nn.functional
  from pytext.config.component import create_loss
  from pytext.loss import CrossEntropyLoss
  from pytext.models.output_layers.output_layer_base import OutputLayerBase
label_desc: Use image node_id 3 for calling the MyTaggingOutputLayer obj's underlying member method code with example usage: obj.get_pred(logit) and returns: preds,  scores