code: def from_config(cls, config, vocab, pad_token):
      return cls(
          vocab, create_loss(config.loss, ignore_index=pad_token)
      )
  
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 1 for calling the MyTaggingOutputLayer obj's underlying member method code with example usage: obj.from_config(cls, config, vocab, pad_token) and returns: cls