code: def __init__(self, labels, char_blank, char_space):
      self.char_space = char_space
      self.char_blank = char_blank
  
      labels = list(labels)
      self.length = len(labels)
      enumerated = list(enumerate(labels))
      flipped = [(sub[1], sub[0]) for sub in enumerated]
  
      d1 = collections.OrderedDict(enumerated)
      d2 = collections.OrderedDict(flipped)
      self.mapping = {**d1, **d2}
  
imports: import collections
  import itertools
label_desc: Use image node_id 1 to create a new LanguageModel object  with example: obj = LanguageModel(labels, char_blank, char_space)