code: def __init__(
      self,
      term: list,
      score: str or float = None,
      polarity: str = None,
      is_acquired: str = None,
      position: str = None,
  ):
      self.term = term
      self.polarity = polarity
      try:
          self.score = float(score)
      except TypeError:
          self.score = 0
      self.position = position
      if is_acquired == "N":
          self.is_acquired = False
      elif is_acquired == "Y":
          self.is_acquired = True
      else:
          self.is_acquired = None
  
imports: import json
  from enum import Enum
  from json import JSONEncoder
label_desc: Use image node_id 1 to create a new LexiconElement object from inherited base classes: object with example: obj = LexiconElement(term, score, polarity, is_acquired, position)