code: def load_lex_as_dict_from_csv(file_name: str or PathLike):
      """Read lexicon as dictionary, key = term, value = pos.
  
      Args:
          file_name: the csv file name
      """
      lexicon_map = {}
      with open(file_name, encoding="utf-8") as f:
          reader = csv.DictReader(f, skipinitialspace=True)
          if reader is None:
              print("file name is None")
              return lexicon_map
          next(reader)
          for row in reader:
              term = row["Term"]
              pos = row["POS subtype"]
  
              lexicon_map[term] = pos
      return lexicon_map
  
imports: import csv
  from enum import Enum
  from os import PathLike
  from nlp_architect.models.absa import TRAIN_LEXICONS
label_desc: Use image node_id 1 for calling a global function with example usage: load_lex_as_dict_from_csv(file_name) and returns: lexicon_map, lexicon_map