code: def get_inherited_hypernyms_list(synset, hyps_list):
      """
      get inherited hypernyms list of synset
      Args:
          synset(synset): synset
          hyps_list: hypernym list
  
      Returns:
          list(str): hyps_list, hypernym list
  
      """
  
      for hypernym in synset.hypernyms():
          hyp_string = hypernym.name()
          hyp_string = hyp_string.split(".")[0]
          hyps_list.append(hyp_string)
          set(get_inherited_hypernyms_list(hypernym, hyps_list))
  
      return hyps_list
  
file_path: nlp-architect/examples/most_common_word_sense/feature_extraction.py
imports: import re
  import nltk
  import numpy
  from numpy import dot
  from numpy.linalg import norm
  from nlp_architect.utils.generic import license_prompt
label_desc: Use image node_id 12 for calling a global function with example usage: get_inherited_hypernyms_list(synset, hyps_list) and returns: hyps_list