class_docstr: A Label field.
  
  A label field is a shallow wrapper around a standard field designed to hold labels
  for a classification task. Its only use is to set the unk_token and sequential to
  `None` by default.
class_docstr_tok: ["A","Label","field",".","A","label","field","is","a","shallow","wrapper","around","a","standard","field","designed","to","hold","labels","for","a","classification","task",".","Its","only","use","is","to","set","the","unk_token","and","sequential","to","`","None","`","by","default","."]
code: def __init__(self, **kwargs):
      # whichever value is set for sequential, unk_token, and is_target
      # will be overwritten
      kwargs["sequential"] = False
      kwargs["unk_token"] = None
      kwargs["is_target"] = True
  
      super(LabelField, self).__init__(**kwargs)
  
imports: from collections import Counter, OrderedDict
  from itertools import chain
  import torch
  from torchtext.data.utils import dtype_to_attr, get_tokenizer, is_tokenizer_serializable
  from ..vocab import Vocab
  from .dataset import Dataset
  from .pipeline import Pipeline
label_desc: Use image node_id 1 to create a new LabelField object from inherited base classes: Field with example: obj = LabelField()